summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-11 18:51:25 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-11 18:51:25 +0100
commitfaef9724d687152309222d212ea159656e29340e (patch)
treeb9fbd96dc93167a5ed7ac09c3eb3ea2b24cded4f
parent8aaf97c6b4b26375bf36dc8be84323d7e16c32aa (diff)
downloadcmocka-faef9724d687152309222d212ea159656e29340e.tar.gz
cmocka-faef9724d687152309222d212ea159656e29340e.tar.bz2
cmocka-faef9724d687152309222d212ea159656e29340e.zip
cmocka: Print better message for exceptions.
-rw-r--r--src/cmocka.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 5700fc9..334f8ab 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -1559,9 +1559,9 @@ void _fail(const char * const file, const int line) {
#ifndef _WIN32
static void exception_handler(int sig) {
#ifdef HAVE_STRSIGNAL
- print_error("%s\n", strsignal(sig));
+ print_error("Test failed with exception: %s\n", strsignal(sig));
#else
- print_error("%d\n", sig);
+ print_error("Test failed with exception: %d\n", sig);
#endif
exit_test(1);
}