forked from Imagelibrary/rtems
testsuites: Add TESTS_USE_PRINTF
Make it possible to use normal printf() if requested to allow output of floating point numbers.
This commit is contained in:
@@ -136,6 +136,22 @@ extern "C" {
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#elif defined(TESTS_USE_PRINTF)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define rtems_test_exit(_s) \
|
||||
do { \
|
||||
exit(_s); \
|
||||
} while (0)
|
||||
|
||||
#define FLUSH_OUTPUT() \
|
||||
do { \
|
||||
fflush(stdout); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
* USE IPRINT
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user