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:
parent
021ea9f68c
commit
60391fb209
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user