From: Fred L. Drake, Jr. Date: Sat, 1 Jul 2006 14:54:06 +0000 (+0000) Subject: if the test reports a failure message, always display it (it was X-Git-Tag: R_2_0_1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60391fb20915f60b05280dbadec91b917cbc8857;p=libexpat if the test reports a failure message, always display it (it was ignored); it makes no sense to ever hide this, so we don't worry about the verbosity setting for this --- diff --git a/expat/tests/minicheck.c b/expat/tests/minicheck.c index c059f631..d2f4295f 100644 --- a/expat/tests/minicheck.c +++ b/expat/tests/minicheck.c @@ -158,6 +158,12 @@ srunner_run_all(SRunner *runner, int verbosity) void _fail_unless(int condition, const char *file, int line, char *msg) { + /* Always print the error message so it isn't lost. In this case, + we have a failure, so there's no reason to be quiet about what + it is. + */ + if (msg != NULL) + printf("%s", msg); longjmp(env, 1); }