diff options
author | Chris Johns <chrisj@rtems.org> | 2017-11-08 13:27:25 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-11-11 16:14:59 +1100 |
commit | e6df806a3f46b5488e5e383add9cda43e0059dbe (patch) | |
tree | 560dabf7fec58d1d33cfaf419842ddbd085d8c16 /testsuites/support/include/buffer_test_io.h | |
parent | tests: Use rtems_test_begin and rtems_test_end. (diff) | |
download | rtems-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/buffer_test_io.h')
-rw-r--r-- | testsuites/support/include/buffer_test_io.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/testsuites/support/include/buffer_test_io.h b/testsuites/support/include/buffer_test_io.h index 8fbcd68b3e..ea68fea0d8 100644 --- a/testsuites/support/include/buffer_test_io.h +++ b/testsuites/support/include/buffer_test_io.h @@ -11,34 +11,6 @@ extern "C" { #endif -#undef printf -#define printf(...) \ - do { \ - rtems_printf( &rtems_test_printer, __VA_ARGS__ ); \ - } while (0) - -#undef puts -#define puts(_s) \ - do { \ - rtems_printf( &rtems_test_printer, "%s\n", _s ); \ - } while (0) - -#undef putchar -#define putchar(_c) \ - do { \ - rtems_printf( &rtems_test_printer, "%c", _c ); \ - } while (0) - -/* Do not call exit() since it closes stdin, etc and pulls in stdio code */ -#define rtems_test_exit(_s) \ - do { \ - rtems_shutdown_executive(0); \ - } while (0) - -#define FLUSH_OUTPUT() \ - do { \ - } while (0) - #define TEST_BEGIN() rtems_test_begin(rtems_test_name, TEST_STATE) #define TEST_END() rtems_test_end(rtems_test_name) |