]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
testsuite: Make stdio-common/tst-printf-format-*-mem UNSUPPORTED if the mtrace output...
authorXi Ruoyao <xry111@xry111.site>
Sat, 25 Jan 2025 16:48:27 +0000 (00:48 +0800)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 26 Jan 2025 15:15:38 +0000 (16:15 +0100)
When gawk was not built with MPFR, there's no mtrace output and those
tests FAIL.  But we should make them UNSUPPORTED like other
tst-printf-format-* tests in the case.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Sam James <sam@gentoo.org>
Reviewed-by: Andreas K Hüttel <dilfridge@gentoo.org>
stdio-common/Makefile

index bbdc1ff70935e7777eb74e69e02fa1b5c9cfa10c..840289afd9821918b8c838aee4a32fb2fb1e2f65 100644 (file)
@@ -599,8 +599,11 @@ $(objpfx)tst-%-mem.out: $(objpfx)tst-%.out
        $(common-objpfx)malloc/mtrace $(objpfx)tst-$*.mtrace > $@; \
        $(evaluate-test)
 $(objpfx)tst-printf-format-%-mem.out: $(objpfx)tst-printf-format-%.out
-       $(common-objpfx)malloc/mtrace \
-         $(objpfx)tst-printf-format-$*.mtrace > $@; \
+       { test -r $(objpfx)tst-printf-format-$*.mtrace \
+       || ( echo "$(objpfx)tst-printf-format-$*.mtrace does not exist"; \
+            exit 77; ) \
+       && $(common-objpfx)malloc/mtrace \
+         $(objpfx)tst-printf-format-$*.mtrace; } > $@; \
        $(evaluate-test)
 
 errlist-h = $(firstword $(wildcard $(addsuffix /errlist.h,$(sysdirs) .)))