tests: Show failure location for normal mode output as well

This commit is contained in:
Sebastian Pipping 2020-10-25 21:01:54 +01:00
parent ef8d5bff85
commit 1e243aca3e

View File

@ -150,7 +150,7 @@ handle_success(int verbosity) {
static void static void
handle_failure(SRunner *runner, int verbosity, const char *phase_info) { handle_failure(SRunner *runner, int verbosity, const char *phase_info) {
runner->nfailures++; runner->nfailures++;
if (verbosity >= CK_VERBOSE) { if (verbosity != CK_SILENT) {
printf("FAIL: %s (%s at %s:%d)\n", _check_current_function, phase_info, printf("FAIL: %s (%s at %s:%d)\n", _check_current_function, phase_info,
_check_current_filename, _check_current_lineno); _check_current_filename, _check_current_lineno);
} }