summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fsdosfsname01: Fix string truncation warningFrank Kühndel2020-10-151-6/+7
| | | | | | | | | | | | | | | This patch fixes a compiler warning: ../../../testsuites/fstests/fsdosfsname01/init.c:430:19: warning: '%s' directive output may be truncated writing up to 6424 bytes into a region of size 257 [-Wformat-truncation=] The buffer 'dirname' is exactly large enough so that no truncation can ever occur. Using the return value of snprintf() is an official supported way to suppress the warning. I considered the comment of Joel Sherrill about not replacing snprintf(): https://lists.rtems.org/pipermail/devel/2020-September/062113.html
* testsuites/samples/fileio - Increase of stack sizeFrank Kühndel2020-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | When I use the 'shell' from the fileio sample with the command below: env QEMU_AUDIO_DRV="none" \ qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 \ -m 256M \ -kernel build/arm/realview_pbx_a9_qemu/testsuites/samples/fileio.exe The executable crashes with an "BLOWN STACK!!!" as soon as I try to login as 'root' with password. (The logins without password work fine.) Increasing the stack size of the affected thread a bit solves the issue. Hence, I suggest this patch. My config.ini was [arm/realview_pbx_a9_qemu] RTEMS_DEBUG = True RTEMS_NETWORKING = True RTEMS_POSIX_API = True RTEMS_SMP = True BUILD_TESTS = True RTEMS origin.master at a479686c112144119866391ceb21c48be6a3eca9 Close #4143
* psxndbm01 - Fixing string truncation warningFrank Kühndel2020-10-121-8/+3
| | | | | | | | | | | | | | | | | | | This fixes the following compiler warning: testsuites/psxtests/psxndbm01/init.c:221:3: warning: 'strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length 221 | strncpy( test_strings, "Hello", 5 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In addition, the comments from Sebastian Huber on an old version of such a patch have been taken into account: 1) The use of `sizeof()` in `key.dsize = sizeof( test_strings );` is wrong. 2) There is no need to allocate the string. One can simply use a string constant. (See https://lists.rtems.org/pipermail/devel/2020-August/061418.html)
* testsuits/dl10 : Prototype missingFrank Kühndel2020-10-101-0/+1
| | | | | | | | | | | | | Fix a compiler warning about a missing prototype. If you wonder why the function name is not `static`: The code in the file only serves a test where the dynamic object loader (aka dlopen()) should handle duplicated symbols in an archive. testsuites/libtests/dl10/dl10-o6.c:14:5: warning: no previous prototype for 'rtems_main_o5' [-Wmissing-prototypes] 14 | int rtems_main_o5 (void) | ^~~~~~~~~~~~~
* testsuite/rcxx01: Add examples for use in the User manualChris Johns2020-10-095-5/+245
|
* validation: Improve file header commentSebastian Huber2020-10-083-15/+29
|
* cpukit/librcxx: Add a C++ thread interface with attributesChris Johns2020-10-084-0/+228
|
* rtems: Add RTEMS_PARTITION_ALIGNMENTSebastian Huber2020-10-072-9/+10
| | | | Update #4105.
* spmsgq_err01: Use correct max values and fix 64bitKinsey Moore2020-10-051-3/+3
| | | | | Fix spmsgq_err01 on systems with 64-bit pointers and correct max value mismatches and inaccuracies that are more noticable on 64-bit systems.
* rtems: Canonicalize name and id checksSebastian Huber2020-10-012-168/+168
| | | | | | Check the name followed by the id check in all create directives. Compare pointers against NULL. Fix formatting.
* tests: Add and use <rtems/testopts.h>Sebastian Huber2020-10-012-2/+4
| | | | | Add the build option RTEMS_TEST_VERBOSITY to control the verbosity of test suites using the RTEMS Test Framework.
* libtests/sha: Fix test if -O0 is usedSebastian Huber2020-09-301-0/+11
|
* validation: Test rtems_message_queue_construct()Sebastian Huber2020-09-281-0/+1868
| | | | Update #4007.
* rtems: Add rtems_message_queue_construct()Sebastian Huber2020-09-285-17/+65
| | | | | | | | | | | In contrast to message queues created by rtems_message_queue_create(), the message queues constructed by this directive use a user-provided message buffer storage area. Add RTEMS_MESSAGE_QUEUE_BUFFER() to define a message buffer type for message buffer storage areas. Update #4007.
* score: Simplify CORE_message_queue_BufferSebastian Huber2020-09-281-2/+1
| | | | | | | | | | Merge CORE_message_queue_Buffer structure into CORE_message_queue_Buffer_control. Use a zero-length array for the actual message buffer. This reduces the structure size on all targets. Update #4007.
* score: Improve _CORE_message_queue_Initialize()Sebastian Huber2020-09-282-6/+7
| | | | | | Return a status code and differentiate between error conditions. Update #4007.
* validation: rtems_task_construct() errorsSebastian Huber2020-09-171-0/+2367
| | | | | | | This is the first test case generated from a specification item in the rtems-central repository. Update #3959.
* validation: Add general purpose test suiteSebastian Huber2020-09-171-0/+222
| | | | | | | | | Add a general purpose test suite for validation tests. This is the first test suite generated from a specification item in the rtems-central repository. Update #3959.
* rtems: Add rtems_task_construct()Sebastian Huber2020-09-173-10/+18
| | | | | | | | | | | | | | | | | In contrast to rtems_task_create() this function constructs a task with a user-provided task storage area. The new directive uses a configuration structure instead of individual parameters. Add RTEMS_TASK_STORAGE_SIZE() to calculate the recommended size of a task storage area based on the task attributes and the size dedicated to the task stack and thread-local storage. This macro may allow future extensions without breaking the API. Add application configuration option CONFIGURE_MINIMUM_TASKS_WITH_USER_PROVIDED_STORAGE to adjust RTEMS Workspace size estimate. Update #3959.
* CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZESebastian Huber2020-09-174-2/+84
| | | | | | | | | | | Add this application configuration option. This configuration option can be used to reserve space for the dynamic linking of modules with thread-local storage objects. Add RTEMS_TASK_STORAGE_ALIGNMENT to define the minium alignment of a thread-local storage size. Update #4074.
* irqs01/smpirqs01: New testsSebastian Huber2020-09-144-0/+525
| | | | Close #4034.
* build: Alternative build system based on wafSebastian Huber2020-09-1425-0/+558
| | | | Update #3818.
* Remove tmoverhd which existed to produce the obsolete coverhd.hJoel Sherrill2020-09-1117-4638/+0
| | | | Closes #4040.
* spintrcritical08: Increase clock tick intervalSebastian Huber2020-09-101-1/+1
| | | | | On some simulators, a clock tick interval of 1ms seems to be too short. For example, the test failed on sparc/erc32 using the SIS.
* score: Add <rtems/score/freechainimpl.h>Sebastian Huber2020-08-311-1/+1
| | | | | | Hide implementation details. Update #3959.
* rtems: Add _RTEMS_Name_to_id()Sebastian Huber2020-08-311-2/+2
| | | | | | | | | | Simplify object name to identifier directives. Using _RTEMS_Name_to_id() to implement the directives enables a tail call optimization. Change license to BSD-2-Clause according to file history. Update #3053.
* spintrcritical22: Use right thread wait flagsSebastian Huber2020-08-211-1/+1
|
* spintrcritical16: Use right thread wait flagsSebastian Huber2020-08-211-1/+1
|
* mp03: Include missing header fileSebastian Huber2020-08-211-0/+2
|
* spintrcritical23: Fix unused variable warningsSebastian Huber2020-08-201-2/+2
|
* sp37: Fix unused variable warningsSebastian Huber2020-08-201-0/+2
|
* psxkey01: Fix configurationAschref Ben Thabet2020-08-201-1/+1
| | | | | | | Key_ID array must have the right size, it shall have a value greater than zero. Note: In Standard C and C++, zero-size array is not allowed..
* libtest: Add T_push_plan() and T_pop_plan()Sebastian Huber2020-08-182-2/+23
| | | | Update #3199.
* libtest: Change T_step() and T_assert_step()Sebastian Huber2020-08-183-12/+12
| | | | | | | | | | | Normally, the expected test step must be a compile time constant. Allow variable expected test steps for the T_step() and T_assert_step(). This can be used for parameterized test loops with individual fixtures. Remove the ability to use custom failure messages due to some implementation constraints. Update #3199.
* libtest: Add fixture stepsSebastian Huber2020-08-183-21/+22
| | | | | | Support a new test plan for each nested fixture. Update #3199.
* libtest: Change fixture scope methodSebastian Huber2020-08-181-4/+4
| | | | | | | Return the produced character count. There is no need for a NUL termination. Update #3199.
* spintrcritical23: Restore runner prioritySebastian Huber2020-08-111-0/+8
|
* libtests/dl10: Delete unused functionsAschref Ben Thabet2020-08-111-22/+0
|
* libtest: Add T_thread_switch_record()Sebastian Huber2020-08-111-0/+66
| | | | | | | | Add support to record thread switch events. This can be used to check that a blocking operation results in the expected sequence of thread switches. Update #3199.
* libtest: Fix T_interrupt_test() in SMP configsSebastian Huber2020-08-061-0/+54
| | | | Update #3199.
* psxhdrs/strncpy/stpncpy: Fix string turncation warningAschref Ben Thabet2020-08-052-8/+6
| | | | | | Since we need to test the strncpy function, using a character array with a fixed array size in this case in place of character pointer can avoid the string turncation warning.
* smpschededf02: Document reset() functionSebastian Huber2020-08-041-1/+13
|
* psxhdrs/strncat: Fix string truncation warningAschref Ben Thabet2020-07-301-1/+1
|
* spmisc01: Include missing header fileSebastian Huber2020-07-241-0/+2
| | | | Update #4032.
* score: Add RTEMS_WEAKSebastian Huber2020-07-244-1/+108
| | | | Update #4032.
* spintrcritical_support: RemoveSebastian Huber2020-07-232-224/+0
| | | | This test support was replaced by T_interrupt_test() is no longer used.
* spintrcritical24: Use T_interrupt_test()Sebastian Huber2020-07-233-39/+119
|
* spintrcritical23: Use T_interrupt_test()Sebastian Huber2020-07-233-44/+88
|
* spintrcritical22: Use T_interrupt_test()Sebastian Huber2020-07-233-40/+87
|
* spintrcritical21: Use T_interrupt_test()Sebastian Huber2020-07-234-140/+149
|