summaryrefslogtreecommitdiffstats
path: root/testsuites/support/include/tmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/support/include/tmacros.h')
-rw-r--r--testsuites/support/include/tmacros.h5
1 files changed, 3 insertions, 2 deletions
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 ); \
} \