summaryrefslogtreecommitdiffstats
path: root/testsuites (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spintrcritical10: Use T_interrupt_test()Sebastian Huber2020-07-233-126/+109
|
* spintrcritical09: Use T_interrupt_test()Sebastian Huber2020-07-233-50/+103
|
* spintrcritical08: Use T_interrupt_test()Sebastian Huber2020-07-233-83/+157
|
* spintrcritical06/spintrcritical07: Remove testsSebastian Huber2020-07-239-242/+0
| | | | | | These two tests check conditions which no longer exist in the thread queue implementation. The are obsolete since the change to use red-black trees for the priority queues.
* spintrcritical01/2/3/4/5: Use T_interrupt_test()Sebastian Huber2020-07-238-104/+194
|
* psxintrcritical01: Use T_interrupt_test()Sebastian Huber2020-07-233-50/+121
|
* libtest: Add T_interrupt_test()Sebastian Huber2020-07-235-0/+232
| | | | Update #3199.
* libtest: Make check message optionalSebastian Huber2020-07-232-2/+25
| | | | | | | This macro magic is in line with C11 and C++11, but limits the maximum count of arguments. Update #3199.
* libtest: Add push/pop fixture supportSebastian Huber2020-07-232-9/+100
| | | | Update #3199.
* libtest: Support custom scope messages via fixtureSebastian Huber2020-07-232-9/+17
| | | | Update #3199.
* libtest: Add T_get_one_clock_tick_busy()Sebastian Huber2020-07-231-1/+1
| | | | Update #3199.
* libtest: Add T_busy()Sebastian Huber2020-07-231-1/+2
| | | | Update #3199.
* libtest: Move <t.h> to <rtems/test.h>Sebastian Huber2020-07-2319-19/+19
| | | | Update #3199.
* libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber2020-07-2365-65/+65
| | | | | | | | Rename this header file to later move <t.h> to <rtems/test.h>. The main feature provided by <rtems/test-info.h> is the output of standard test information which is consumed by the RTEMS Tester. Update #3199.
* rtems: Remove deprecated rtems_io_lookup_name()Sebastian Huber2020-07-141-21/+0
| | | | Close #3420.
* Change version to RTEMS 6Sebastian Huber2020-06-301-2/+2
| | | | Update #4020.
* psxtmtests: Fix test namesSebastian Huber2020-06-231-1/+1
| | | | Tests PSXTMCOND 08, 09, and 10 had the same test name.
* rtems: Remove RTEMS_MP_NOT_CONFIGURED errorSebastian Huber2020-06-1812-94/+4
| | | | | | | | | | | | | | Some objects can be created with a local or global scope in a multiprocessing network. In non-multiprocessing configurations setting the scope to local or global had no effect since such a system can be viewed as a multiprocessing network with just one node. One and all nodes is the same in such a network. However, if multiprocessing was configured, creation of a global object in a single node network resulted in an RTEMS_MP_NOT_CONFIGURED error. Remove this error condition for symmetry to the non-multiprocessing setup. This is in line with the task affinity behaviour in SMP systems. Update #4005.
* smpsignal01: Change state before sending the signalJan Sommer2020-06-111-1/+1
| | | | | | The signal handler of the consumer might start executing before rtems_signal_send of the producer returns. Therefore change the state to SIG_1_SENT before sending the signal.
* tests for fenv.h functionsEshan dhawan2020-06-063-26/+77
| | | | | | | | | | | | | | | | | | | | | added tests for fesetexeptflag(), fegetexeptflag(), fegetround(), fesetround(). In the test fegetround() does not return any flag other then FE_TONEAREST in tests. This is probably due to soft float. The test complies successfully and returns assert at fegetround() Other tests run without any errors tested on RISCV/rv32imac The test prints nothing if runs successfully. updates #2971 Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>
* libtests/tar01: Remove files of tar01.tar archiveSebastian Huber2020-05-083-5/+0
| | | | Update #3968.
* libtests/tar0[12]: Add tar archiveSebastian Huber2020-05-074-16/+9
| | | | | | | Do not generate the test tar archive on the host computer since not all file systems support symbolic links. Close #3968.
* testsuite: Add the BSP architecture to the include pathChris Johns2020-05-061-1/+1
| | | | Updates #2962
* rtems: Add rtems_get_copyright_notice()Sebastian Huber2020-05-062-0/+2
| | | | Update #3973.
* rtems: Deprecate use of _RTEMS_versionSebastian Huber2020-05-061-0/+2
| | | | Close #3970.
* libtest/dl09: Test trampolines only when supportedChris Johns2020-05-061-4/+20
|
* testsuite/dl06: Add a local define to control tracingChris Johns2020-05-051-0/+2
| | | | Closes #3969
* libtests/heapwalk: Fix for RTEMS_DEBUGSebastian Huber2020-04-291-0/+3
| | | | Update #2962.
* sapi: Add param check to rtems_extension_create()Sebastian Huber2020-04-171-0/+5
| | | | | | Check that the extensions table is not NULL. Change format. Update #3953.
* Canonicalize config.h includeSebastian Huber2020-04-16204-204/+204
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libmisc/shell: Fix the handling of joel scripts in telnetChris Johns2020-04-151-3/+120
| | | | | | | | | | | | - Fix the passing of std[in/out] to child threads - Fix deleting of managed memory in the key destructor - Only set the key in the main loop thread - Only allocate a shell env outside of the main loop - Fix memory leak if the task start fails - Remove error level from shell env, it cannot be returned this way. Add exit_code but the API is broken so it cannot be returned. Closes #3859
* score: Check time of day in _TOD_Set()Sebastian Huber2020-04-141-0/+25
| | | | Close #3949.
* score: Return status in _TOD_Set()Sebastian Huber2020-04-141-7/+7
| | | | Update #3949.
* score: Delete RTEMS_DECLARE_GLOBAL_SYMBOL()Sebastian Huber2020-04-081-7/+0
| | | | | | Delete unused RTEMS_DECLARE_GLOBAL_SYMBOL(). Update #3799.
* Tests for inttype.h methodsEshan dhawan2020-04-072-2/+32
|
* tests: Small memory exclude for record02Sebastian Huber2020-04-061-0/+1
| | | | Update #3938.
* testsuites: Remove CONFIGURE_MALLOC_STATISTICSSebastian Huber2020-03-315-12/+0
| | | | | | This configuration option is obsolete since 2014. Update #1367.
* sptests/sptls02: Add test caseSebastian Huber2020-03-234-12/+99
| | | | | | | Add a test case which requires the use of __tls_guard() and __tls_init(). Change license to BSD-2-Clause.
* record: Add rtems_record_dump()Sebastian Huber2020-03-182-12/+27
| | | | | | | | | Add rtems_record_dump_base64() and rtems_record_dump_base64_zlib(). Add CONFIGURE_RECORD_FATAL_DUMP_BASE64 and CONFIGURE_RECORD_FATAL_DUMP_BASE64_ZLIB configuration options. Update #3904.
* score: Add _IO_Base64()Sebastian Huber2020-03-161-0/+56
| | | | Update #3904.
* libio: Robust file descriptor reference countingSebastian Huber2020-03-131-14/+48
| | | | | | | | | | | | There was a race conditon in the reference counting of file descriptors during a close() operation. After the call to the close handler, the rtems_libio_free() function cleared the flags to zero. However, at this point in time there may still exist some holders of the file descriptor. With RTEMS_DEBUG enabled this could lead to failed assertions in rtems_libio_iop_drop(). Change the code to use only atomic read-modify-write operations on the rtems_libio_iop::flags.
* imfs: Replace devfs with an IMFS specializationSebastian Huber2020-03-0911-324/+32
| | | | | | | | | | | | | | | | Add a simplified path evaluation function IMFS_eval_path_devfs() for a device only IMFS configuration. The code size can be further reduced by the application if it disables the support for legacy IO drivers via: #define CONFIGURE_IMFS_DISABLE_MKNOD #define CONFIGURE_IMFS_DISABLE_MKNOD_DEVICE Obsolete CONFIGURE_MAXIMUM_DEVICES. Remove BSP_MAXIMUM_DEVICES. Update #3894. Update #3898.
* imfs: Add IMFS_add_node()Sebastian Huber2020-03-041-34/+172
| | | | Update #3894.
* config: Remove <rtems/btimer.h> includeSebastian Huber2020-03-0431-0/+60
| | | | | | | The use of CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER does not define anything, so remove the <rtems/btimer.h> include. Update #3875.
* sptests/spheapprot: Fix warningSebastian Huber2020-03-041-1/+5
|
* fstests/fsrename: Rename a file twiceSebastian Huber2020-03-031-0/+29
|
* sptests/spextensions01: Add commentSebastian Huber2020-03-031-0/+9
| | | | Update #3885.
* rtems: Add rtems_scheduler_map_priority_from_posix()Sebastian Huber2020-03-031-0/+44
| | | | Update #3881.
* rtems: Add rtems_scheduler_map_priority_to_posix()Sebastian Huber2020-03-031-7/+45
| | | | Update #3881.
* score: Fix context switch extensions (SMP)Sebastian Huber2020-02-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In uniprocessor and SMP configurations, the context switch extensions were called during _Thread_Do_dispatch(): void _Thread_Do_dispatch( Per_CPU_Control *cpu_self, ISR_Level level ) { Thread_Control *executing; executing = cpu_self->executing; ... do { Thread_Control *heir; heir = _Thread_Get_heir_and_make_it_executing( cpu_self ); ... _User_extensions_Thread_switch( executing, heir ); ... _Context_Switch( &executing->Registers, &heir->Registers ); ... } while ( cpu_self->dispatch_necessary ); ... } In uniprocessor configurations, this is fine and the context switch extensions are called for all thread switches except the very first thread switch to the initialization thread. However, in SMP configurations, the context switch may be invalidated and updated in the low-level _Context_Switch() routine. See: https://docs.rtems.org/branches/master/c-user/symmetric_multiprocessing_services.html#thread-dispatch-details In case such an update happens, a thread will execute on the processor which was not seen in the previous call of the context switch extensions. This can confuse for example event record consumers which use events generated by a context switch extension. Fixing this is not straight forward. The context switch extensions call must move after the low-level context switch. The problem here is that we may end up in _Thread_Handler(). Adding the context switch extensions call to _Thread_Handler() covers now also the thread switch to the initialization thread. We also have to save the last executing thread (ancestor) of the processor. Registers or the stack cannot be used for this purpose. We have to add it to the per-processor information. Existing extensions may be affected, since now context switch extensions use the stack of the heir thread. The stack checker is affected by this. Calling the thread switch extensions in the low-level context switch is difficult since at this point an intermediate stack is used which is only large enough to enable servicing of interrupts. Update #3885.