summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/support/include/buffer_test_io.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuites/support/include/buffer_test_io.h b/testsuites/support/include/buffer_test_io.h
index e0eb24d6fb..03d5419b76 100644
--- a/testsuites/support/include/buffer_test_io.h
+++ b/testsuites/support/include/buffer_test_io.h
@@ -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
*/