summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-12-16 23:35:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-12-16 23:35:54 +0000
commit6fd0b53695eaf244bb723e460673ba2ee1b8b111 (patch)
treee76268bc2aca96815847183a3b2b664a6fefe16d
parent462e2d7ca1b9200e037dc517e51207d964a0d4fb (diff)
2003-12-16 Joel Sherrill <joel@OARcorp.com>
PR 544/tests * include/buffer_test_io.h: Various modifications to make tests account for resources and not print at inappropriate times.
-rw-r--r--c/src/tests/support/ChangeLog6
-rw-r--r--c/src/tests/support/include/buffer_test_io.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/c/src/tests/support/ChangeLog b/c/src/tests/support/ChangeLog
index 81440b3821..1b7d469fc2 100644
--- a/c/src/tests/support/ChangeLog
+++ b/c/src/tests/support/ChangeLog
@@ -1,3 +1,9 @@
+2003-12-16 Joel Sherrill <joel@OARcorp.com>
+
+ PR 544/tests
+ * include/buffer_test_io.h: Various modifications to make tests account
+ for resources and not print at inappropriate times.
+
2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: URL for license changed.
diff --git a/c/src/tests/support/include/buffer_test_io.h b/c/src/tests/support/include/buffer_test_io.h
index f4bb2333d4..4fd016df6f 100644
--- a/c/src/tests/support/include/buffer_test_io.h
+++ b/c/src/tests/support/include/buffer_test_io.h
@@ -22,6 +22,12 @@ extern "C" {
#if !defined(TESTS_BUFFER_OUTPUT)
+#undef printf
+#define printf(...) \
+ do { \
+ iprintf( __VA_ARGS__); \
+ } while (0)
+
#define rtems_test_exit(_s) \
do { \
exit(_s); \