summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-05 18:17:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-05 18:17:01 +0000
commitf388d36d848da3a155e02c6cbb9ab439d2a7aacd (patch)
tree4013a96d907efa625e2513a7eeedcbd7b9771141
parent+ Added tests for open, close, unlink, and send. (diff)
downloadrtems-f388d36d848da3a155e02c6cbb9ab439d2a7aacd.tar.bz2
Now print strings -- not error numbers.
-rw-r--r--c/src/tests/support/include/tmacros.h5
-rw-r--r--testsuites/support/include/tmacros.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/c/src/tests/support/include/tmacros.h b/c/src/tests/support/include/tmacros.h
index a089ee2c46..2e7925f809 100644
--- a/c/src/tests/support/include/tmacros.h
+++ b/c/src/tests/support/include/tmacros.h
@@ -25,6 +25,7 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
+#include <rtems/error.h>
#define FOREVER 1 /* infinite loop */
@@ -60,8 +61,8 @@ extern "C" {
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
- printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
- (_msg), (_desired), (_stat) ); \
+ printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
+ (_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
fflush(stdout); \
exit( _stat ); \
} \
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
index a089ee2c46..2e7925f809 100644
--- a/testsuites/support/include/tmacros.h
+++ b/testsuites/support/include/tmacros.h
@@ -25,6 +25,7 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
+#include <rtems/error.h>
#define FOREVER 1 /* infinite loop */
@@ -60,8 +61,8 @@ extern "C" {
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
- printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
- (_msg), (_desired), (_stat) ); \
+ printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
+ (_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
fflush(stdout); \
exit( _stat ); \
} \