summaryrefslogtreecommitdiffstats
path: root/testsuites (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-07-15sparc: Prefer RTEMS_FATAL_SOURCE_EXCEPTIONSebastian Huber2-17/+55
Prefer RTEMS_FATAL_SOURCE_EXCEPTION over INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT since the fatal code (rtems_exception_frame) provides more context.
2021-07-15spcoverage: Remove test programSebastian Huber5-85/+0
This program contained an optional test case. It was enabled by the RTEMS_COVERAGE define. The functions under test are not implemented by RTEMS.
2021-07-06Update test smpstrongapa01Richi Dubey1-19/+47
Update smpstrongapa01 to account for task shifting.
2021-06-24bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNTSebastian Huber1-1/+1
Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269.
2021-06-24smpcapture02: Fix use of BSP_INTERRUPT_VECTOR_MAXSebastian Huber1-1/+1
This define represents the last valid interrupt vector number. Update #3269.
2021-06-24bsps/irq: Remove BSP_INTERRUPT_VECTOR_MINSebastian Huber1-1/+1
Remove BSP_INTERRUPT_VECTOR_MIN and unconditionally let interrupt vector numbers start with zero. The BSP_INTERRUPT_VECTOR_MIN == 0 invariant was tested by the previous commit and building all BSPs. Update #3269.
2021-06-22i2c: Add non blocking read / writeChristian Mauderer1-1/+120
This adds the possibility to open an I2C bus with O_NONBLOCK (or set it later via fcntl) to get non-blocking transmissions. This means that if the bus is busy, a read, write or transfer ioctl will return with a EAGAIN errno.
2021-06-10score: Add PER_CPU_DATA_NEED_INITIALIZATION()Sebastian Huber2-0/+4
Make the initialization of the per-CPU data optional. Change license to BSD-2-Clause according to file history and re-licensing agreement. Update #3053.
2021-06-10splinkersets01: Test linker sets in librarySebastian Huber4-5/+45
Make sure that the linker sets work if placed in a library (this is how they are used in RTEMS).
2021-06-09sysconf: Remove sysconf(515)Ryan Long1-8/+0
GCC originally needed this 20 years ago. No longer needed, so it is being removed. Closes #4391
2021-06-08fsnofs01/init.c: Check for ENOENT from utime().Joel Sherrill1-3/+6
The addition of the entire *utime*() family of functions resulted in this call returning ENOENT not ENXIO. This is better aligned with the POSIX definition of the methods.
2021-05-28psx13: Added tests for utimensat() and futimens()Ryan Long2-22/+482
Improved tests for utime() and utimes() and update license. Close #4399
2021-05-28thread-API: Add rtems_*mutex_try_lockChristian Mauderer1-0/+79
This adds a rtems_mutex_try_lock and a rtems_recursive_mutex_try_lock. Update #4440.
2021-05-26posix: Allow pthread_cancel() from within ISRsSebastian Huber1-31/+45
Close #4413.
2021-05-20testsuites: Remove telnetd01Vijay Kumar Banerjee3-155/+0
telnetd01 test cannot be run without a network stack, so this test is being moved to the rtems-net-legacy repository.
2021-05-14rtems: Check entry point in rtems_task_start()Sebastian Huber1-0/+9
Close #4410.
2021-05-14validation: Add INVALID_ID to tx-support.hSebastian Huber3-4/+7
2021-05-14validation: Add support librarySebastian Huber8-10/+10
Add a library for support functions used by validation tests. Rename tc-support.* to tx-support.* since this file does not contain test cases.
2021-05-12rtems: Constify rtems_task_wake_when()Sebastian Huber1-2/+2
Add a parameter to _TOD_Validate() to disable the validation of the ticks member. There are two reasons for this change. Firstly, in rtems_task_wake_when() was a double check for time_buffer == NULL (one in rtems_task_wake_when() and one in _TOD_Validate()). Secondly, the ticks member is ignored by rtems_task_wake_when(). This was done with a write of zero to the ticks member and thus a modification of the user-provided structure. Now the structure is no longer modified. Using a mask parameter is quite efficient. You just have to load an immediate value and there are no additional branches in _TOD_Validate(). Close #4406.
2021-05-12_TOD_Validate(): Fix incorrect return codeFrank Kühndel1-3/+3
This patch fixes bug #4403. Directives * rtems_timer_fire_when() * rtems_timer_server_fire_when() * rtems_task_wake_when() are documented to return RTEMS_INVALID_ADDRESS when their time-of-day argument is NULL. But actually they return RTEMS_INVALID_CLOCK. To fix the issue this patch changes _TOD_Validate() to return a status code instead of just true/false. Close #4403
2021-05-07validation: Fix handling of N/A pre-conditionsSebastian Huber9-492/+43
In the action requirements, some pre-conditions are not applicable depending on the state of other pre-conditions. There is no particular order in the pre-conditions, so we have to check the N/A status individually.
2021-05-06Return NULL for zero size allocationsSebastian Huber1-55/+26
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. Return NULL on RTEMS to more likely catch the use of a zero size memory area by erroneous applications. Update #4390.
2021-05-06rtems: rtems_scheduler_get_processor_set() statusSebastian Huber1-1/+1
In case the processor set is not large enough to contain the processor set owned by the scheduler 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 #4401.
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.