summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfdrake <fdrake>2006-07-01 14:54:06 +0000
committerfdrake <fdrake>2006-07-01 14:54:06 +0000
commitef3eed724310383dae9fbfa4cd3391b01130db85 (patch)
treed662a11e3fb6b4aab2c97a04f5eb12f22ef01edc /tests
parent54130e31026947f83505345ccef96dbc2e29ee83 (diff)
downloadlibexpat-ef3eed724310383dae9fbfa4cd3391b01130db85.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/minicheck.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/minicheck.c b/tests/minicheck.c
index c059f63..d2f4295 100644
--- a/tests/minicheck.c
+++ b/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);
}