From: Dmitry V. Levin Date: Mon, 5 Dec 2016 10:34:33 +0000 (+0000) Subject: tests: skip redirect-fds.test when strace is wrapped with valgrind X-Git-Tag: v4.15~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ac436f4c3b50dab3cee937185ffb0f1e579d695;p=strace tests: skip redirect-fds.test when strace is wrapped with valgrind valgrind is not as transparent as strace wrt standard descriptors, so if strace is wrapped with valgrind, the test would check valgrind transparency properties and fail imminently. * tests/redirect-fds.test: Skip the test when $STRACE shows a presence of valgrind. --- diff --git a/tests/redirect-fds.test b/tests/redirect-fds.test index a451917b..ddef8fab 100755 --- a/tests/redirect-fds.test +++ b/tests/redirect-fds.test @@ -29,6 +29,11 @@ . "${srcdir=.}/init.sh" +case "$STRACE" in + *valgrind\ *--suppressions=*) + skip_ 'incompatible with valgrind' ;; +esac + fd0="$LOG.fd0" fd1="$LOG.fd1" fd2="$LOG.fd2"