From 413043b7c06ee839790c7698d485ec6376a79b47 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 16 Aug 2001 19:42:02 +0000 Subject: 2001-08-16 Joel Sherrill * include/tmacros.h: Attempt to print errno as further information. --- c/src/tests/support/include/tmacros.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'c/src/tests/support/include') 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 ); \ } \ -- cgit v1.2.3