From e11d9287cf6f8e2ed0a0e0a2577a0e72c7db8e49 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 Feb 2014 12:37:26 +0100 Subject: testsuites: Add TESTS_USE_PRINTF Make it possible to use normal printf() if requested to allow output of floating point numbers. --- testsuites/support/include/buffer_test_io.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 + #include + + #define rtems_test_exit(_s) \ + do { \ + exit(_s); \ + } while (0) + + #define FLUSH_OUTPUT() \ + do { \ + fflush(stdout); \ + } while (0) + /* * USE IPRINT */ -- cgit v1.2.3