summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Fix warningsChris Johns2022-08-052-3/+4
| | | | Updates #4662
* testsuite/psxclock: Check setting realtime clock does not effect sleeping tasksChris Johns2022-08-051-1/+171
| | | | Closes #4690
* posix: Fix relative CLOCK_REALTIME sleepSebastian Huber2022-08-041-32/+14
| | | | | | | | | A relative CLOCK_REALTIME time out shall not be affected by CLOCK_REALTIME changes through clock_settime(). Since our CLOCK_REALTIME is basically just CLOCK_MONOTONIC plus an offset, we can simply use the CLOCK_MONOTONIC watchdog for relative CLOCK_REALTIME time outs. Update #4690.
* sp54: Fix test caseSebastian Huber2022-08-011-2/+2
| | | | | | | Since commit 6a6580331df3e09516d50f37d4dd5fd57825c08a, the local table is zero-initialized. Use an initial object control block instead. Update #4678.
* libtests/dl*: Bump up the size of CONFIGURE_INIT_TASK_STACK_SIZERyan Long2022-07-2910-10/+10
| | | | Updates #4682
* score: Use PTHREAD_CANCELED for _Thread_Cancel()Sebastian Huber2022-07-281-1/+1
| | | | | | | | | | The rtems_task_delete() directive is basically just a combined pthread_cancel() and pthread_join(). In addition, it removes the PTHREAD_DETACHED state. The exit value returned by pthread_join() of threads cancelled by rtems_task_delete() should reflect this by getting a PTHREAD_CANCELED value instead of NULL which could be a normal exit value. Close #4680.
* score: Use priority inheritance for thread joinSebastian Huber2022-07-286-399/+509
| | | | | | | | | | | | | | | | | | | | | Threads may join the thread termination of another thread using the pthread_join() or rtems_task_delete() directives. The thread cancel operation used a special case priority boosting mechanism implemented by _Thread_Raise_real_priority(). The problem was that this approach * is not transitive, * does not account for priority adjustments of the calling task while waiting for the join, * does not support clustered scheduling, and * does not detect deadlocks. All these problems are fixed by using a priority inheritance thread queue for the join operation. Close #4679.
* psxconfig01: Increase region areaSebastian Huber2022-07-271-1/+1
| | | | This fixes a test failure on 64-bit systems with RTEMS_DEBUG enabled.
* score: Remove PRIORITY_PSEUDO_ISR thread prioritySebastian Huber2022-07-261-11/+7
| | | | | | | | | | | | | | | The uniprocessor schedulers had some special case logic for the PRIORITY_PSEUDO_ISR priority. Tasks with a priority of PRIORITY_PSEUDO_ISR were allowed to preempt a not preemptible task. If other higher priority task are made ready while a PRIORITY_PSEUDO_ISR task preempts a not preemptible task, then the other tasks run before the not preemptible task. This made the RTEMS_NO_PREEMPT mode ineffective. Remove the PRIORITY_PSEUDO_ISR special case logic. This simplifies the uniprocessor schedulers. Move the uniprocessor-specific scheduler support to the new header file <rtems/score/scheduleruniimpl.h>. Close #2365.
* sptests/spstdc17: New testSebastian Huber2022-07-252-0/+69
|
* Support _REENT_THREAD_LOCAL Newlib configurationMatt Joyce2022-07-211-4/+7
| | | | | | | | | In case the Newlib _REENT_THREAD_LOCAL configuration option is enabled, the struct _reent is not defined (there is only a forward declaration in <sys/reent.h>). Instead, the usual members of struct _reent are available as dedicatd thread-local storage objects. Update #4560.
* sptests: Disable Newlib reentrancyMatt Joyce2022-07-214-1/+22
| | | | Update #4560.
* sptls04: Test an external TLS objectSebastian Huber2022-07-213-3/+81
|
* ada/sp09: The year 2100 cannot be setSebastian Huber2022-07-201-12/+6
| | | | Update #4338.
* spsysinit01: Account for use of .noinit sectionSebastian Huber2022-07-181-2/+2
| | | | | | | The objects control blocks cannot be used to check the pre-initialization state since they are allocated in a .noinit section. Update #4678.
* spunlimited01: New testSebastian Huber2022-07-182-0/+139
| | | | Update #4677.
* score: Extend memory dirty/zero actionsSebastian Huber2022-07-151-6/+42
| | | | | | Dirty or zero also the part of the .noinit section used by RTEMS. Close #4678.
* score: Place object controls into .noinit sectionsSebastian Huber2022-07-151-1/+2
| | | | | | | | | | | | Place the statically allocated object control blocks, local tables, and thread queue heads into the dedicated .noinit intput sections. The output section is not zero initialized. Placing these elements into the .noinit section reduces the system initialization time by decreasing the .bss section size. It may improve the cache efficiency since the mostly read local tables are placed in a contiguous memory area. Update #4678.
* cdtest: Restrict exceptions during sysinitSebastian Huber2022-07-141-0/+14
| | | | | | | Exceptions during system initialization work only on targets which do not need a registration of exception frames during the global construction. In particular, targets which use the DWARF2 unwinder cannot use exceptions during system initialization.
* spextensions01: Fix assertionSebastian Huber2022-07-141-2/+11
| | | | | Commit 80090639a62b50d7d66614ca789e4592924a06e5 altered the system state change. Account for this in assert_allocator_protected_thread_context().
* validation: SMP-specific spurious interrupt testSebastian Huber2022-07-141-23/+125
| | | | Update #3716.
* sppps01: Fix test in SMP configurationsSebastian Huber2022-07-131-1/+1
| | | | Update #2349.
* validation: Test thread idle bodiesSebastian Huber2022-07-071-0/+194
| | | | Update #3716.
* validation: Always test spurious interruptsSebastian Huber2022-07-071-14/+10
| | | | Update #3716.
* validation: Test thread free of FPU ownerSebastian Huber2022-07-071-0/+74
| | | | Update #3716.
* validation: Test scheduler detailSebastian Huber2022-07-071-2/+135
| | | | | | | This particular state during a reconsider help request scheduler operation was only covered by the existing test suites under some timing conditions. Update #3716.
* sppps01: Add test case for early returns of pps_event()Gabriel Moyano2022-07-051-3/+46
| | | | Update #2349.
* score: Add _CPU_Use_thread_local_storage()Sebastian Huber2022-07-041-4/+16
| | | | | | | | | | | | At some point during system initialization, the idle threads are created. Afterwards, the boot processor basically executes within the context of an idle thread with thread dispatching disabled. On some architectures, the thread-local storage area of the associated thread must be set in dedicated processor registers. Add the new CPU port function to do this: void _CPU_Use_thread_local_storage( const Context_Control *context ) Close #4672.
* libtests/crypt01: Avoid stack overflowsSebastian Huber2022-07-041-1/+5
| | | | | The SHA512 functions may use huge amounts of stack space if compiled without optimization.
* samples/minimum: Prevent a stack overflowSebastian Huber2022-07-041-0/+5
| | | | Prevent a stack overflow if RTEMS_COVERAGE is enabled.
* build: Add RTEMS_GCOV_COVERAGE optionSebastian Huber2022-07-042-2/+2
| | | | Update #4670.
* gcov: Add functions to dump the gcov informationSebastian Huber2022-07-041-1/+2
| | | | Update #4670.
* samples/cdtest: Test exceptions during system initSebastian Huber2022-07-041-9/+35
| | | | | Update #4668. Update #4672.
* spcpuset01: Account for <sys/cpuset.h> API changesSebastian Huber2022-06-231-0/+10
| | | | Update #4667.
* score: Use right clock for threadq timeoutsSebastian Huber2022-06-231-2/+8
| | | | | | | | Use CLOCK_REALTIME and CLOCK_MONOTONIC for relative thread queue timeouts instead of CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE. This fixes an issue with clock_nanosleep() in combination with clock_gettime(). Close #4669.
* TFTPFS: Fix test configuration for FP targetsSebastian Huber2022-06-211-0/+2
| | | | | | The test uses snprintf(). Update #4666.
* TFTPFS: Reduce test configurationSebastian Huber2022-06-211-3/+2
| | | | Update #4666.
* TFTPFS: Add testsFrank Kühndel2022-06-215-0/+9475
| | | | Update #4666.
* testsuite: Fix gcc 12 warningsChris Johns2022-06-2162-89/+96
|
* sptests/spglobalcon01/init.cc: Change license to BSD-2Joel Sherrill2022-06-141-3/+22
| | | | Updates #3053.
* samples/iostream/init.cc: Change license to BSD-2Joel Sherrill2022-06-141-3/+22
| | | | Updates #3053.
* sptests/*/*.doc: Change license to BSD-2Joel Sherrill2022-06-141-3/+20
| | | | Updates #3053.
* mptests/*/*.doc: Change license to BSD-2Joel Sherrill2022-06-1426-78/+572
| | | | Updates #3053.
* smptests/*/*.doc: Change license to BSD-2Joel Sherrill2022-06-1410-30/+220
| | | | Updates #3053.
* psxtmtests/*/*.doc: Change license to BSD-2Joel Sherrill2022-06-1445-135/+990
| | | | Updates #3053.
* samples/*/*.doc: Change license to BSD-2Joel Sherrill2022-06-1412-33/+244
| | | | Updates #3053.
* smptests/*/*.py: Change license to BSD-2Joel Sherrill2022-06-144-12/+88
| | | | | | Manually adjusted location of SPDX annotation so #! remains first line. Updates #3053.
* Newlib01: Add tests for rand() and lrand48()Matt Joyce2022-06-092-0/+53
| | | | | | Check that the state of rand() and lrand48() is thread-specific, that they are properly initialized, and return the expected sequence of pseudo-random numbers for default seed values.
* testsuite/libtests: Add exit03 to test exit() with C++Chris Johns2022-06-094-0/+199
| | | | Updates #4661
* validation: Fix CallWithinISR()Sebastian Huber2022-06-081-0/+2
| | | | | | | Some BSPs require that Clear_tm27_intr() is called in the interrupt service routine. Update #3269.