summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-16 19:42:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-16 19:42:02 +0000
commit413043b7c06ee839790c7698d485ec6376a79b47 (patch)
tree4a0c87e2178f83088ec3a62e11394a8e0407a9b5
parent2001-08-16 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-413043b7c06ee839790c7698d485ec6376a79b47.tar.bz2
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: Attempt to print errno as further information.
-rw-r--r--c/src/tests/support/ChangeLog4
-rw-r--r--c/src/tests/support/include/tmacros.h6
-rw-r--r--testsuites/support/ChangeLog4
-rw-r--r--testsuites/support/include/tmacros.h6
4 files changed, 16 insertions, 4 deletions
diff --git a/c/src/tests/support/ChangeLog b/c/src/tests/support/ChangeLog
index a0a10f67cc..5fabca663e 100644
--- a/c/src/tests/support/ChangeLog
+++ b/c/src/tests/support/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-16 Joel Sherrill <joel@OARcorp.com>
+
+ * include/tmacros.h: Attempt to print errno as further information.
+
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).
diff --git a/c/src/tests/support/include/tmacros.h b/c/src/tests/support/include/tmacros.h
index 6009ef473e..8b3619a639 100644
--- a/c/src/tests/support/include/tmacros.h
+++ b/c/src/tests/support/include/tmacros.h
@@ -91,8 +91,10 @@ extern "C" {
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
- printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
- (_msg), strerror(_desired), strerror(_stat) ); \
+ printf( "\n%s FAILED -- expected (%d - %s) got (%d - %s)\n", \
+ (_msg), _desired, strerror(_desired), _stat, strerror(_stat) ); \
+ printf( "\n FAILED -- errno (%d - %s)\n", \
+ errno, strerror(errno) ); \
fflush(stdout); \
exit( _stat ); \
} \
diff --git a/testsuites/support/ChangeLog b/testsuites/support/ChangeLog
index a0a10f67cc..5fabca663e 100644
--- a/testsuites/support/ChangeLog
+++ b/testsuites/support/ChangeLog
@@ -1,3 +1,7 @@
+2001-08-16 Joel Sherrill <joel@OARcorp.com>
+
+ * include/tmacros.h: Attempt to print errno as further information.
+
2001-05-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Use RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]).
diff --git a/testsuites/support/include/tmacros.h b/testsuites/support/include/tmacros.h
index 6009ef473e..8b3619a639 100644
--- a/testsuites/support/include/tmacros.h
+++ b/testsuites/support/include/tmacros.h
@@ -91,8 +91,10 @@ extern "C" {
do { \
check_dispatch_disable_level( _level ); \
if ( (_stat) != (_desired) ) { \
- printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
- (_msg), strerror(_desired), strerror(_stat) ); \
+ printf( "\n%s FAILED -- expected (%d - %s) got (%d - %s)\n", \
+ (_msg), _desired, strerror(_desired), _stat, strerror(_stat) ); \
+ printf( "\n FAILED -- errno (%d - %s)\n", \
+ errno, strerror(errno) ); \
fflush(stdout); \
exit( _stat ); \
} \