]> granicus.if.org Git - strace/commitdiff
tests: skip redirect-fds.test when strace is wrapped with valgrind
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Dec 2016 10:34:33 +0000 (10:34 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Dec 2016 10:41:05 +0000 (10:41 +0000)
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.

tests/redirect-fds.test

index a451917b2e98598e7aee87896ae2d2b4395499a8..ddef8fab13ab0d380c7e9211203c360bc51a18f9 100755 (executable)
 
 . "${srcdir=.}/init.sh"
 
+case "$STRACE" in
+       *valgrind\ *--suppressions=*)
+               skip_ 'incompatible with valgrind' ;;
+esac
+
 fd0="$LOG.fd0"
 fd1="$LOG.fd1"
 fd2="$LOG.fd2"