summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-07 23:07:32 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-07 23:07:32 +0000
commitec1e4f4f87674a99b5ebb6e0ba3f53ae9ee89f85 (patch)
tree17b6cc713460ff290338fc8e190ad70cee42b02c
parent2001-11-07 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-ec1e4f4f87674a99b5ebb6e0ba3f53ae9ee89f85.tar.bz2
2001-11-07 Joel Sherrill <joel@OARcorp.com>
Tracked as PR72 but related to the object id problem (PR36) reported by Todor.Todorov@barco.com. * include/tmacros.h: Added fatal_directive_check_status_only().
-rw-r--r--c/src/tests/support/include/tmacros.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/c/src/tests/support/include/tmacros.h b/c/src/tests/support/include/tmacros.h
index 8b3619a639..cfa8684057 100644
--- a/c/src/tests/support/include/tmacros.h
+++ b/c/src/tests/support/include/tmacros.h
@@ -62,15 +62,20 @@ extern "C" {
#define fatal_directive_status( _stat, _desired, _msg ) \
fatal_directive_status_with_level( _stat, _desired, _msg, 0 )
-#define fatal_directive_status_with_level( _stat, _desired, _msg, _level ) \
+#define fatal_directive_check_status_only( _stat, _desired, _msg ) \
do { \
- check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
(_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
fflush(stdout); \
exit( _stat ); \
} \
+ } while ( 0 )
+
+#define fatal_directive_status_with_level( _stat, _desired, _msg, _level ) \
+ do { \
+ check_dispatch_disable_level( _level ); \
+ fatal_directive_check_status_only( _stat, _desired, _msg ); \
} while ( 0 )
/*