From aa7e05c3043302403e91b85c4aea39e0aac6c7c8 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Wed, 25 Nov 2020 08:30:17 +0100 Subject: Mark mtrace tests UNSUPPORTED if bug-ga2.mtrace or tst-leaks2.mtrace are missing Starting with commit 29fddfc7dfd6444fa61a256e9a0d0127545e1f2e, the tests posix/bug-ga2 and resolv/tst-leaks2 are test-container tests. If test-container.c returns with EXIT_UNSUPPORTED, the tests with mtrace() are not executed and the mtrace files do not exist. Therefore the "mtrace-analysis-part" of those tests are marked UNSUPPORTED if the mtrace files are missing. Reported-by: Tulio Magno Quites Machado Filho Reviewed-by: Tulio Magno Quites Machado Filho --- resolv/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resolv/Makefile') diff --git a/resolv/Makefile b/resolv/Makefile index 462c111..1cd6344 100644 --- a/resolv/Makefile +++ b/resolv/Makefile @@ -158,7 +158,9 @@ $(objpfx)mtrace-tst-leaks.out: $(objpfx)tst-leaks.out tst-leaks2-ENV = MALLOC_TRACE=$(objpfx)tst-leaks2.mtrace $(objpfx)mtrace-tst-leaks2.out: $(objpfx)tst-leaks2.out - $(common-objpfx)malloc/mtrace $(objpfx)tst-leaks2.mtrace > $@; \ + { test -r $(objpfx)tst-leaks2.mtrace \ + || ( echo "tst-leaks2.mtrace does not exist"; exit 77; ) \ + && $(common-objpfx)malloc/mtrace $(objpfx)tst-leaks2.mtrace; } > $@; \ $(evaluate-test) tst-resolv-res_ninit-ENV = MALLOC_TRACE=$(objpfx)tst-resolv-res_ninit.mtrace -- cgit v1.1