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
This commit is contained in:
Fred L. Drake, Jr. 2006-07-01 14:54:06 +00:00
parent 021ea9f68c
commit 60391fb209

View File

@ -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);
}