]> granicus.if.org Git - strace/commitdiff
tests: redirect stdin to /dev/null
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 23 Jan 2018 23:17:02 +0000 (23:17 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 23 Jan 2018 23:17:02 +0000 (23:17 +0000)
Ensure that stdin descriptor is not available for output
by reopening it to input from /dev/null.

* tests/run.sh: Redirect test's stdin to /dev/null.

tests/run.sh

index 5cc0f193bcbad125a1b308e31023f953edb69062..208aa0f9ecaf5a5811358ea1151f3f07d7e6915a 100755 (executable)
@@ -14,4 +14,4 @@ if [ $# -eq 0 ]; then
        exit 1
 fi
 
-exec $TIMEOUT "$@"
+exec $TIMEOUT "$@" < /dev/null