source: rtems/testsuites/support/include/buffer_test_io.h @ bb3484c9

Last change on this file since bb3484c9 was e6df806, checked in by Chris Johns <chrisj@…>, on Nov 8, 2017 at 2:27:25 AM

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.

  • Property mode set to 100644
File size: 343 bytes
Line 
1/*
2 *  Support for running the test output through a buffer
3 */
4
5#ifndef __BUFFER_TEST_IO_h
6#define __BUFFER_TEST_IO_h
7
8#include <rtems/test.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14#define TEST_BEGIN() rtems_test_begin(rtems_test_name, TEST_STATE)
15#define TEST_END()   rtems_test_end(rtems_test_name)
16
17#ifdef __cplusplus
18};
19#endif
20
21#endif
Note: See TracBrowser for help on using the repository browser.