summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include/tmacros.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-09-26tests: Add header for RTEMS test printerSebastian Huber1-0/+1
The <rtems/test-info.h> header file is required for every RTEMS test program. Move the RTEMS test printer support to a dedicated header file <rtems/test-printer.h>. This removes an unnecessary dependency to the RTEMS printer support in <rtems/test-info.h>. Tests using the RTEMS Testing Framework no longer depend on the <rtems/printer.h>.
2022-04-12testsuites/support/*: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2020-07-23libtest: <rtems/test.h> to <rtems/test-info.h>Sebastian Huber1-1/+1
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.
2019-12-04testsuites: Remove rtems_test_pause*()Sebastian Huber1-28/+0
The rtems_test_pause() and rtems_test_pause_and_screen_number() macros had different implementations depending on the RTEMS_TEST_NO_PAUSE define. This define was defined to 1 by default. The user was able to change this via the undocumented --disable-test-no-pause configure command line option. Pausing tests and waiting for user input contradicts the goal of having automated test runs. Remove this feature. Update #3818.
2019-11-12tests: Remove superfluous SMPTESTS defineSebastian Huber1-9/+1
Update #3818.
2017-11-11tests: Use ld to map (wrap) printf, puts and putchar to tester functions.Chris Johns1-13/+0
- Remove the macro defines and the need for tmacro.h by remapping the symbols using ld's wrap option. - Remove FLUSH_OUTPUT, it was empty. - Move rtems_test_exit to libmisc/testsupport as a function. Update #3199.
2017-10-28tests: Remove TEST_INITSebastian Huber1-1/+1
The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
2017-10-28tests: Use rtems_test_printer in generalSebastian Huber1-2/+2
Update #3170. Update #3199.
2017-10-23testsuite: Use printk for all test output where possible.Chris Johns1-1/+1
- Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
2017-04-18Merge tmacros.h PRIxxx constants from testsuites/ into <rtems/inttypes.h>Joel Sherrill1-41/+1
This completes the initial creation of rtems/inttypes.h based on all existing PRIxxx definitions contained in RTEMS Project owned code. closes #2983.
2017-02-14tmacros.h: Fix print definesSebastian Huber1-4/+4
2016-05-25testsuite: Fix printk formating warning.Chris Johns1-3/+3
2015-05-27score: Replace _API_Mutex_Is_locked()Sebastian Huber1-26/+19
Replace _API_Mutex_Is_locked() with _API_Mutex_Is_owner().
2015-04-14Add test assertion for allocator mutex being unlockedJoel Sherrill1-1/+54
The Allocator Mutex should not be locked outside a tested service call. In an SMP test or heavily multithreaded test, this is possible since another thread could have the lock for an extended period of time but this is not the norm for the tests. updates 2319.
2014-11-24testsuites/.../tmacros.h: Add parentheses to fix warningJoel Sherrill1-2/+2
2014-11-20libtests/malloctest/init.c: Fix warningJoel Sherrill1-5/+27
posix_memalign() is prototyped to take a non-NULL parameter. But our test is deliberately passing one in. With the -Wnon-null warning flag enabled, we will always get warnings on this test unless we disable that warning for this single test case.
2014-10-23testsuites: Move include for C++ compatibilitySebastian Huber1-3/+2
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2014-03-17sapi: Add <rtems/test.h>Sebastian Huber1-0/+1
Provide support functions to print the begin/end of test message. Provide a test fatal extension to print out profiling reports in the future.
2013-07-26score: Create thread implementation headerSebastian Huber1-2/+1
Move implementation specific parts of thread.h and thread.inl into new header file threadimpl.h. The thread.h contains now only the application visible API. Remove superfluous header file includes from various files.
2013-06-14score: Add and use _Thread_Dispatch_is_enabled()Sebastian Huber1-3/+3
Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2011-10-252011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-9/+0
* support/include/tmacros.h: Remove fatal_posix_service_pointer_minus_one (unused).
2011-09-302011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-4/+0
* support/include/tmacros.h: Remove PRItime_t.
2011-07-012011-07-01 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett1-2/+10
* support/include/tmacros.h: Disable the check for dispatch disable level for SMP tests. Another CPU may be inside RTEMS by the time these checks are being done which would result in false failures.
2011-04-212011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.comJennifer Averett1-3/+4
PR 1777/cpukit * support/include/tmacros.h, tmtests/tm26/task1.c, tmtests/tm27/task1.c: Consolidated access to _Thread_Dispatch_disable_level.
2011-02-082011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-8/+0
* support/include/tmacros.h: Remove PRIxblksize_t, PRIxblkcnt_t.
2010-05-292010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+0
* support/include/tmacros.h: Remove PRIdoff_t.
2010-04-282010-04-22 Sebastian Huber <Sebastian.Huber@embedded-brains.de>Joel Sherrill1-1/+4
* support/include/tmacros.h: Changed check_dispatch_disable_level() to treat all non-zero values of _Thread_Dispatch_disable_level equally.
2009-12-082009-12-08 Glenn Humphrey <glenn.humphrey@OARcorp.com>Glenn Humphrey1-4/+4
* support/include/test_support.h, support/include/tmacros.h, support/src/test_support.c: Added support functions to spin for a number of ticks and to spin until the next tick. * support/src/spin.c: New file.
2009-12-082009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-5/+6
* support/include/tmacros.h: Use rtems_test_assert() consistently instead of system assert(). rtems_test_assert() is designed to integrate into the RTEMS test suite infrastructure.
2009-11-30Whitespace removal.Ralf Corsepius1-1/+1
2009-11-092009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-3/+11
* support/include/tmacros.h: Add service to check status returned by POSIX methods which return a pointer which is -1 on error. This eliminated some casts.
2009-11-032009-01-03 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-6/+1
* support/include/tmacros.h: Include rtems/score/thread.h. Remove _Thread_Dispatch_disable_level.
2009-11-01Add PRIxino_t, PRIdoff_t, PRIxblksize_t, PRIxblkcnt_t.Ralf Corsepius1-4/+21
Comment cleanups.
2009-10-30Add PRIxrtems_task_priority, PRIxrtems_task_priority, PRIxrtems_signal_set.Ralf Corsepius1-0/+5
2009-10-27Add PRIxpthread_t.Ralf Corsepius1-0/+4
2009-10-272009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+6
* support/include/tmacros.h: Add PRIxrtems_event_set. (fatal_posix_service_status_errno) Add local "long" var "statx".
2009-10-27Add PRIdThread_Entry_numeric_type.Ralf Corsepius1-0/+5
Add PRIdrtems_task_argument.
2009-10-262009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+6
* support/include/tmacros.h: Add PRIdWatchdog_Interval. Add PRIdrtems_interval.
2009-10-262009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+4
* support/include/tmacros.h: Add PRIdPriority_Control. Change PRIdrtems_task_priority to using PRIdPriority_Control.
2009-10-26Add PRIdrtems_task_priority.Ralf Corsepius1-0/+2
2009-10-26Add PRIxrtems_id.Ralf Corsepius1-0/+6
2009-10-262009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+6
* support/include/tmacros.h: Add PRItime_t.
2009-10-262009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* support/include/tmacros.h (print_time): Use PRIu32 instead of %d.
2009-10-262009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+7
* support/include/tmacros.h: Move _Thread_Dispatch_disable_level outside of check_dispatch_disable_level.
2009-10-262009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-5/+7
* support/include/tmacros.h: Include <inttypes.h>. Move extern "C". Let put_name use "int" instead "uint32_t" (Arg to putchar must be int).
2009-08-122009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-10/+1
* support/include/tmacros.h: Eliminate test routines TICKS_PER_SECOND and get_ticks_per_second() in favor of new rtems_clock_get_ticks_per_second().
2008-02-012008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-2/+1
* support/include/tmacros.h: Change TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all POSIX tests. Add a clock_settime case for < 1988.
2008-01-312008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-4/+5
* support/include/tmacros.h: Fix put_name to handle unprintable names.