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:
Sebastian Huber
2014-02-10 12:37:26 +01:00
parent bab16de267
commit e11d9287cf

View File

@@ -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
*/