[PATCH v2] Mark mtrace tests UNSUPPORTED if bug-ga2.mtrace or tst-leaks2.mtrace are missing

Andreas Schwab schwab@linux-m68k.org
Tue Nov 24 10:47:23 GMT 2020


On Nov 24 2020, Stefan Liebler via Libc-alpha wrote:

> diff --git a/posix/Makefile b/posix/Makefile
> index fa2d0675cd..a69a38f795 100644
> --- a/posix/Makefile
> +++ b/posix/Makefile
> @@ -358,7 +358,9 @@ $(objpfx)tst-getconf.out: tst-getconf.sh $(objpfx)getconf
>  	$(evaluate-test)
>  
>  $(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 > $@; \

You can avoid the duplication of the redirection by adding a group
around the command list.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list