mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Mark mtrace tests UNSUPPORTED if bug-ga2.mtrace or tst-leaks2.mtrace are missing
Starting with commit 29fddfc7df
, 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 <tuliom@linux.ibm.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
This commit is contained in:
@ -358,7 +358,9 @@ $(objpfx)tst-getconf.out: tst-getconf.sh $(objpfx)getconf
|
|||||||
$(evaluate-test)
|
$(evaluate-test)
|
||||||
|
|
||||||
$(objpfx)bug-ga2-mem.out: $(objpfx)bug-ga2.out
|
$(objpfx)bug-ga2-mem.out: $(objpfx)bug-ga2.out
|
||||||
$(common-objpfx)malloc/mtrace $(objpfx)bug-ga2.mtrace > $@; \
|
{ test -r $(objpfx)bug-ga2.mtrace \
|
||||||
|
|| ( echo "bug-ga2.mtrace does not exist"; exit 77; ) \
|
||||||
|
&& $(common-objpfx)malloc/mtrace $(objpfx)bug-ga2.mtrace; } > $@; \
|
||||||
$(evaluate-test)
|
$(evaluate-test)
|
||||||
|
|
||||||
bug-ga2-ENV = MALLOC_TRACE=$(objpfx)bug-ga2.mtrace
|
bug-ga2-ENV = MALLOC_TRACE=$(objpfx)bug-ga2.mtrace
|
||||||
|
@ -158,7 +158,9 @@ $(objpfx)mtrace-tst-leaks.out: $(objpfx)tst-leaks.out
|
|||||||
|
|
||||||
tst-leaks2-ENV = MALLOC_TRACE=$(objpfx)tst-leaks2.mtrace
|
tst-leaks2-ENV = MALLOC_TRACE=$(objpfx)tst-leaks2.mtrace
|
||||||
$(objpfx)mtrace-tst-leaks2.out: $(objpfx)tst-leaks2.out
|
$(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)
|
$(evaluate-test)
|
||||||
|
|
||||||
tst-resolv-res_ninit-ENV = MALLOC_TRACE=$(objpfx)tst-resolv-res_ninit.mtrace
|
tst-resolv-res_ninit-ENV = MALLOC_TRACE=$(objpfx)tst-resolv-res_ninit.mtrace
|
||||||
|
Reference in New Issue
Block a user