Commit Graph

132 Commits

Author SHA1 Message Date
Joel Sherrill
f7d27953cb testsuites/.../tmacros.h: Add parentheses to fix warning 2014-11-24 13:57:21 -06:00
Joel Sherrill
163519a055 libtests/malloctest/init.c: Fix warning
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-11-20 12:57:33 -06:00
Sebastian Huber
3e739ae95f testsuites: Move include for C++ compatibility 2014-10-23 10:21:41 +02:00
Joel Sherrill
8fbe2e69b5 Use correct prototype of benchmark_timer_read()
This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
2014-09-16 16:09:12 -05:00
Sebastian Huber
b97bc8bc71 tests: Add locked_printf_plugin()
Add locked_vprintf().  Return an int just like printf(), etc.
2014-05-07 18:27:19 +02:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
840ae715a9 sapi: Add <rtems/test.h>
Provide support functions to print the begin/end of test message.
Provide a test fatal extension to print out profiling reports in the
future.
2014-03-17 09:17:36 +01:00
Sebastian Huber
e11d9287cf testsuites: Add TESTS_USE_PRINTF
Make it possible to use normal printf() if requested to allow output of
floating point numbers.
2014-02-12 09:18:00 +01:00
Sebastian Huber
5618c37a7a score: Create thread implementation header
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-07-26 11:55:44 +02:00
Sebastian Huber
a9127a2e65 testsuites: Include missing header files 2013-07-22 16:45:59 +02:00
Sebastian Huber
49cdf40afa score: Add and use _Thread_Dispatch_is_enabled()
Delete _Thread_Dispatch_in_critical_section() and
_Thread_Is_dispatching_enabled().
2013-06-14 16:26:06 +02:00
Sebastian Huber
ac2bb464a5 smptests: Use priority ceiling for locked print
In case the printf() blocks on a semaphore it was possible to end up in
a livelock.
2013-05-31 15:20:30 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
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.
2012-05-11 08:44:13 -05:00
Ralf Corsépius
ac165341df 2011-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/src/spin.c: Include "test_support.h".
2012-03-02 18:16:33 +01:00
Sebastian Huber
77998753b5 Use alternative API
Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate().  Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
2012-02-17 16:56:17 +01:00
Ralf Corsepius
436ef337de 2011-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmtests_empty_function.h: New.
	* support/src/tmtests_empty_function.c,
	support/src/tmtests_support.c:
	Include "tmtests_empty_function.h".
	Remove local decls (Missing prototypes).
2011-12-11 06:49:22 +00:00
Sebastian Huber
abe56121c7 2011-11-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* support/src/test_support.c: Avoid magic numbers.
2011-11-04 09:55:04 +00:00
Ralf Corsepius
5008f65e6f 2011-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h:
	Remove fatal_posix_service_pointer_minus_one (unused).
2011-10-25 16:30:35 +00:00
Ralf Corsepius
7036ed0049 2011-10-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/primode.h: New.
	* Makefile.am: Add support/include/primode.h
2011-10-13 13:08:12 +00:00
Ralf Corsepius
bf08a0f2a7 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Remove PRItime_t.
2011-09-30 02:58:15 +00:00
Ralf Corsepius
30e49544d5 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/pritime.h: New.
	* Makefile.am: Add support/include/pritime.h
2011-09-30 02:31:25 +00:00
Jennifer Averett
d4a0934bf4 2011-07-29 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* support/include/test_support.h: Fixed incorrect name in prototype.
2011-07-29 13:48:16 +00:00
Jennifer Averett
d504e48b29 2011-07-01 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* 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-07-01 14:28:03 +00:00
Joel Sherrill
152a284188 2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac, support/include/test_support.h:
	* support/src/locked_print.c: New file.
2011-06-28 21:09:13 +00:00
Jennifer Averett
1c95d94af6 2011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.com
PR 1777/cpukit
	* support/include/tmacros.h, tmtests/tm26/task1.c,
	tmtests/tm27/task1.c: Consolidated access to
	_Thread_Dispatch_disable_level.
2011-04-21 19:05:34 +00:00
Ralf Corsepius
9fa8d0eed5 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/src/tmtests_support.c:
	loop_overhead and end_time are uint32_t's.
2011-02-22 14:41:17 +00:00
Ralf Corsepius
b1305bb945 Add HAVE_CONFIG_H. 2011-02-22 11:11:44 +00:00
Ralf Corsepius
5aa9263ff0 2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Remove PRIxblksize_t, PRIxblkcnt_t.
2011-02-08 06:39:57 +00:00
Joel Sherrill
be8bdff62b 2010-07-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/test_support.h, support/src/test_support.c: Add
	Allocate_majority_of_heap().
2010-07-14 16:03:57 +00:00
Joel Sherrill
d04a7e9316 2010-06-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* support/src/tmtests_support.c: Fix warning.
2010-06-25 16:59:06 +00:00
Joel Sherrill
82fbd358ba 2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/test_support.h, support/src/tmtests_empty_function.c:
	Add helper so it is easier to write a basic repeated operation
	tmtest.
	* support/src/tmtests_support.c: New file.
2010-06-21 16:54:17 +00:00
Ralf Corsepius
45215d2075 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Remove PRIdoff_t.
2010-05-29 05:29:33 +00:00
Joel Sherrill
6196ded1d5 2010-04-22 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* support/include/tmacros.h: Changed check_dispatch_disable_level() to
	treat all non-zero values of _Thread_Dispatch_disable_level equally.
2010-04-28 16:37:20 +00:00
Glenn Humphrey
6cc1c294d6 2009-12-08 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* 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-08 21:39:21 +00:00
Joel Sherrill
0654c588a8 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-12-08 17:53:04 +00:00
Ralf Corsepius
b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Joel Sherrill
1369978b7f 2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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-09 14:49:35 +00:00
Ralf Corsepius
f62c4673b6 2009-01-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Include rtems/score/thread.h.
	Remove _Thread_Dispatch_disable_level.
2009-11-03 04:29:40 +00:00
Ralf Corsepius
3699e143d3 Add PRIxino_t, PRIdoff_t, PRIxblksize_t, PRIxblkcnt_t.
Comment cleanups.
2009-11-01 06:38:59 +00:00
Ralf Corsepius
9ea82a5f69 Add PRIxrtems_task_priority, PRIxrtems_task_priority, PRIxrtems_signal_set. 2009-10-30 13:20:34 +00:00
Ralf Corsepius
01f1a20e86 Add PRIxpthread_t. 2009-10-27 14:12:59 +00:00
Ralf Corsepius
d0f47c22fb 2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIxrtems_event_set.
	(fatal_posix_service_status_errno) Add local "long" var "statx".
2009-10-27 08:12:25 +00:00
Ralf Corsepius
15b7644e55 Add PRIdThread_Entry_numeric_type.
Add PRIdrtems_task_argument.
2009-10-27 06:53:07 +00:00
Ralf Corsepius
e693be45d7 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIdWatchdog_Interval.
	Add PRIdrtems_interval.
2009-10-26 17:02:40 +00:00
Ralf Corsepius
ddff7ef490 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIdPriority_Control.
	Change PRIdrtems_task_priority to using PRIdPriority_Control.
2009-10-26 14:20:43 +00:00
Ralf Corsepius
20fd4a517b Add PRIdrtems_task_priority. 2009-10-26 13:51:25 +00:00
Ralf Corsepius
47f20ce5d7 Add PRIxrtems_id. 2009-10-26 10:37:20 +00:00
Ralf Corsepius
b701261ccf 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRItime_t.
2009-10-26 09:06:39 +00:00
Ralf Corsepius
88f692dac2 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h (print_time): Use PRIu32 instead of %d.
2009-10-26 05:38:04 +00:00
Ralf Corsepius
aea32337ed 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/test_support.h: Add missing prototypes.
2009-10-26 05:33:50 +00:00