summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include/tmacros.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-11-08 13:27:25 +1100
committerChris Johns <chrisj@rtems.org>2017-11-11 16:14:59 +1100
commite6df806a3f46b5488e5e383add9cda43e0059dbe (patch)
tree560dabf7fec58d1d33cfaf419842ddbd085d8c16 /testsuites/support/include/tmacros.h
parenttests: Use rtems_test_begin and rtems_test_end. (diff)
downloadrtems-e6df806a3f46b5488e5e383add9cda43e0059dbe.tar.bz2
tests: Use ld to map (wrap) printf, puts and putchar to tester functions.
- 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.
Diffstat (limited to 'testsuites/support/include/tmacros.h')
-rw-r--r--testsuites/support/include/tmacros.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
index 354d4cf60f..60da7647dc 100644
--- a/testsuites/support/include/tmacros.h
+++ b/testsuites/support/include/tmacros.h
@@ -64,7 +64,6 @@ extern "C" {
"\n_Thread_Dispatch_disable_level is (%i)" \
" not %d detected at %s:%d\n", \
!_Thread_Dispatch_is_enabled(), (_expect), __FILE__, __LINE__ ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( 1 ); \
} \
} while ( 0 )
@@ -84,7 +83,6 @@ extern "C" {
__FILE__, \
__LINE__ \
); \
- FLUSH_OUTPUT(); \
rtems_test_exit( 1 ); \
} \
} while ( 0 )
@@ -107,7 +105,6 @@ extern "C" {
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
} \
} while ( 0 )
@@ -137,7 +134,6 @@ extern "C" {
printf( "\n%s FAILED -- expected (%d - %s) got (%ld %d - %s)\n", \
(_msg), _desired, strerror(_desired), \
statx, errno, strerror(errno) ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
}
@@ -153,7 +149,6 @@ extern "C" {
(_msg), _desired, strerror(_desired), _stat, strerror(_stat) ); \
printf( "\n FAILED -- errno (%d - %s)\n", \
errno, strerror(errno) ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
} \
} while ( 0 )
@@ -166,7 +161,6 @@ extern "C" {
check_dispatch_disable_level( 0 ); \
printf( "\n%s FAILED -- expected (-1) got (%p - %d/%s)\n", \
(_msg), _ptr, errno, strerror(errno) ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( -1 ); \
}
@@ -178,7 +172,6 @@ extern "C" {
check_dispatch_disable_level( 0 ); \
printf( "\n%s FAILED -- expected (-1) got (%" PRId32 " - %d/%s)\n", \
(_msg), _ptr, errno, strerror(errno) ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( -1 ); \
}
@@ -202,7 +195,6 @@ extern "C" {
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
(_msg), (_desired), (_stat) ); \
- FLUSH_OUTPUT(); \
rtems_test_exit( _stat ); \
} \
} while ( 0 )
@@ -229,7 +221,6 @@ extern "C" {
#define put_dot( _c ) \
do { \
putchar( _c ); \
- FLUSH_OUTPUT(); \
} while ( 0 )
#define new_line puts( "" )
@@ -240,20 +231,17 @@ extern "C" {
#define rtems_test_pause() \
do { \
printf( "<pause>\n" ); \
- FLUSH_OUTPUT(); \
} while ( 0 )
#define rtems_test_pause_and_screen_number( _screen ) \
do { \
printf( "<pause - screen %d>\n", (_screen) ); \
- FLUSH_OUTPUT(); \
} while ( 0 )
#else
#define rtems_test_pause() \
do { \
char buffer[ 80 ]; \
printf( "<pause>" ); \
- FLUSH_OUTPUT(); \
gets( buffer ); \
puts( "" ); \
} while ( 0 )
@@ -262,7 +250,6 @@ extern "C" {
do { \
char buffer[ 80 ]; \
printf( "<pause - screen %d>", (_screen) ); \
- FLUSH_OUTPUT(); \
gets( buffer ); \
puts( "" ); \
} while ( 0 )