diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 19:42:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 19:42:02 +0000 |
commit | 413043b7c06ee839790c7698d485ec6376a79b47 (patch) | |
tree | 4a0c87e2178f83088ec3a62e11394a8e0407a9b5 /testsuites | |
parent | 2001-08-16 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-413043b7c06ee839790c7698d485ec6376a79b47.tar.bz2 |
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: Attempt to print errno as further information.
Diffstat (limited to '')
-rw-r--r-- | testsuites/support/ChangeLog | 4 | ||||
-rw-r--r-- | testsuites/support/include/tmacros.h | 6 |
2 files changed, 8 insertions, 2 deletions
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 ); \ } \ |