commit f3ff539ee4d739d704415f3ff17d72a822bb3d9b
parent e93e9325285eafba1afd60e56a6afb400cf9c8f3
Author: jvoisin <julien.voisin@dustri.org>
Date: Tue, 22 Aug 2023 19:37:20 +0200
Show the failing file name in the testsuite
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/common.h b/tests/common.h
@@ -50,7 +50,7 @@ set_fortify_handler (void)
}
#define FAIL() \
- do { fprintf (stderr, "Failure on line %d\n", __LINE__); ret = 1; } while (0)
+ do { fprintf (stderr, "Failure in %s:%d\n", __FILE__, __LINE__); ret = 1; } while (0)
#define CHK_FAIL_START \
chk_fail_ok = 1; \
if (! setjmp (chk_fail_buf)) \