summaryrefslogtreecommitdiffstats
path: root/testsuites (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-05psxtests: Fix math function build warningsStephen Clark60-0/+231
Added conditionals to ensure that long double function tests were only built when newlib has long double math functions.
2021-05-04Make zero size allocation result consistentSebastian Huber1-10/+96
The zero size allocations had no consistent behaviour in RTEMS. For example, malloc( 0 ) returned NULL and posix_memalign( &p, align, 0 ) returned in p a unique pointer (or NULL if no memory is available). In POSIX, zero size memory allocations are implementation-defined behaviour. The implementation has two options: https://pubs.opengroup.org/onlinepubs/9699919799/functions/malloc.html https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html Linux and FreeBSD return a unique pointer for zero size memory allocations. Use this approach for RTEMS as well throughout the memory allocation directives Close #4390.
2021-05-03libtest: Fix use of flexible array memberSebastian Huber1-15/+15
Flexible array members must not appear in the middle of a structure.
2021-05-02spmisc01: Test RTEMS_NOINITSebastian Huber1-0/+5
Close #3866.
2021-04-28psx13: Reworked and relicensedRyan Long3-582/+324
Changed the way the tests were structured, added rtems_test_assert()'s, updated psx13.scn and the license. Update #3899
2021-04-27rtems: Change rtems_task_get_affinity() statusSebastian Huber2-2/+3
In case the processor set is not large enough to contain the processor affinity set of the task return RTEMS_INVALID_SIZE instead of RTEMS_INVALID_NUMBER. This is more in line with other directives since the issue is related to the size of an object. Close #4393.
2021-04-26Makefile.am: Remove legacy networking filesVijay Kumar Banerjee2-92/+0
2021-04-23rtems: Check for NULL config in task constructSebastian Huber1-130/+220
Since there are already excessive NULL pointer checks in the Classic API, do this also in rtems_task_construct(). Update #3959.
2021-04-23rtems: Check for NULL config in msgq constructSebastian Huber1-110/+195
Since there are already excessive NULL pointer checks in the Classic API, do this also in rtems_message_queue_construct(). Update #4007.
2021-04-21clock:_TOD_To_seconds(): Fix year 2514 overflowFrank Kühndel1-10/+18
This patch fixes issue #4338 by changing _TOD_Validate() to only accept years till 2105. This requires another patch to change the documentation of rtems_clock_set() and other affected API functions (indicating the end date is 2105 not 2514). I tried to support till year 2514 but it turned out that this needs changing the Timer Manager too. That in turn would mean to change _TOD_Seconds_since_epoch( void ) from 32 to 64 bit. Sebastian pointed out that a naive extension leads to trouble with 32 bit processors. He deemed a safe re-implementation too costly performance wise considering that year 2106 is far away and current binaries using RTEMS Classic API are unlikely to be in use by 2106. The constant TOD_SECONDS_AT_2100_03_01_00_00 in cpukit/rtems/src/clocktodtoseconds.c happens to be wrong by 1 hour. When setting the date 2100-Feb-28 23:59:59 and then reading the date again you will find yourself in 2100-Feb-27. Update #4338
2021-04-20Fix calloc() behaviour in case of overflowSebastian Huber1-10/+13
The multiplication to calculate the length of the memory area to allocate may overflow. Return NULL in case of an overflow. Close #4389.
2021-04-13smpfatal08: block secondary processorsJiri Gaisler1-0/+2
* On some SMP platforms, all cpus are started by the boot-loader. We need to block the secondary cpus or they will clobber the test output.
2021-04-13Revert "cpukit: Remove telnetd"Vijay Kumar Banerjee3-0/+155
This reverts commit 3299dda2454a8847c670a732f6c12ef1f2cc5dd0.
2021-04-07testsuites: Remove all legacy networking testsVijay Kumar Banerjee22-2103/+0
Update #3850
2021-04-07cpukit: Remove telnetdVijay Kumar Banerjee3-155/+0
Update #3850
2021-04-07testsuites/libtests: Remove networking01Vijay Kumar Banerjee3-196/+0
Update #3850
2021-04-07validation: Fix unused variable warningSebastian Huber1-3/+2
Fix warning: testsuites/validation/tc-signal-send.c:634:21: warning: unused variable 'sc' [-Wunused-variable]
2021-04-07libtests/block14: Fix warningSebastian Huber1-1/+1
Fix warning: testsuites/libtests/block14/init.c:198:8: warning: 'sc' may be used uninitialized in this function [-Wmaybe-uninitialized] Update #3689.
2021-03-30Restore FDT in ofw01 to avoid test timeout on RISCVJiri Gaisler1-0/+1
2021-03-27score: Fix task stack initializationSebastian Huber4-4/+17
Do not adjust the stack area begin address since this may confuse the stack allocator and result in failed stack frees. Account for the alignment overhead in the stack space size estimate. Check that the stack size is in the expected interval.
2021-03-26libblock: Add rtems_bdbuf_peek()Christian Mauderer3-36/+110
Adds a peek function that allows (for example) a file system to suggest the next blocks that should be used for read ahead. This can increase the read speed of fragmented files. Update #3689
2021-03-23validation: Use support functionsSebastian Huber6-306/+66
2021-03-23validation: Add test case support functionsSebastian Huber2-0/+274
2021-03-19validation: Reduce source code/rodata sizeSebastian Huber9-9795/+1271
Use a common wording for the tests. Use the new templates for action requirements described in the RTEMS Software Engineering manual.
2021-03-16rtems: Allow initially locked MrsP semaphoresSebastian Huber1-4/+10
Rejecting initially locked MrsP semaphores was due to a limitiation of the early limitiation of the MrsP protocol. This limitation no longer exists.
2021-03-16rtems: Require RTEMS_PRIORITY for MrsP semaphoresSebastian Huber5-17/+24
MrsP semaphores are a generalization of the priority ceiling semaphores for SMP configurations. Priority ceiling semaphores are required to use the priority task wait queue discipline. Require this discipline also for MrsP semaphores. Close #4347.
2021-03-16sp14: Fix for SMP or robust thread dispatchSebastian Huber1-0/+5
Close #4343.
2021-03-16validation: Task create/constructSebastian Huber2-0/+2
Run the task create/construct tests also on validation test suite 1 which has exactly one processor configured.
2021-03-11validation: Improve wordingSebastian Huber6-11/+13
2021-03-11Test suite for FTW.H methodsEshan dhawan6-0/+255
Signed-off-by: Eshan Dhawan <eshandhawan51@gmail.com>
2021-03-11validation: Use common wordingSebastian Huber5-1095/+1102
2021-03-08validation: Use common wordingSebastian Huber6-75/+82
2021-03-05validation: Use common wordingSebastian Huber5-8/+8
2021-03-05CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZESebastian Huber1-6/+6
Ensure that CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE meets the task storage alignment requirement.
2021-03-04validation: Fix for 64-bit targetsSebastian Huber1-1/+12
Closes #4179.
2021-03-02rtems: Simplify rtems_signal_catch()Sebastian Huber1-100/+549
In uniprocessor configurations, we can simplify rtems_signal_catch(). Add a validation test for the SMP special case.
2021-03-02validation: Format comment blocksSebastian Huber9-164/+136
2021-03-01validation: Add comments to task testsSebastian Huber2-0/+231
2021-03-01validation: Add comments to message queue testsSebastian Huber1-308/+1056
Split up post-condition.
2021-03-01validation: Add comments to signal testsSebastian Huber2-0/+184
2021-03-01validation: Add comments to barrier testsSebastian Huber4-3/+207
Unify code sections across tests.
2021-03-01score: Fix _Stack_Extend_size()Sebastian Huber1-0/+3180
Check for an integer overflow. Add a validation test for task create errors.
2021-03-01validation: Improve task construct error testsSebastian Huber1-521/+1353
2021-02-26score: Fix thread initializationSebastian Huber1-850/+2101
Close the thread object if a thread create extension fails. Also call the delete extension to avoid resource leaks in early extensions if a late extension fails. Close #4270.
2021-02-26libtest: Print SHA256 hash in base64urlSebastian Huber1-1/+1
2021-02-26libtest: Report target hashSebastian Huber1-2/+6
Update #4267.
2021-02-26Add system initialization step for target hashSebastian Huber1-0/+16
Update #4267.
2021-02-25score: Add _IO_Base64url()Sebastian Huber1-0/+12
Update #4267.
2021-02-24validation: Simplify message queue construct testsSebastian Huber1-88/+52
2021-02-24validation: Add missing barrier create test caseSebastian Huber1-56/+291