From f3ff539ee4d739d704415f3ff17d72a822bb3d9b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 22 Aug 2023 19:37:20 +0200 Subject: Show the failing file name in the testsuite --- tests/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.h b/tests/common.h index 4bd5a4e..3c116a2 100644 --- 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)) \ -- cgit v1.3