]> granicus.if.org Git - strace/commitdiff
redirect.test: fix the way how strace output is discarded
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 14 Feb 2016 00:54:32 +0000 (00:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 14 Feb 2016 00:59:42 +0000 (00:59 +0000)
* tests/redirect.test: Disable tracing of syscalls, signals,
and exit status instead of redirecting strace output to /dev/null.

tests/redirect.test

index 0cb0820d4c603043d295cedfee001c135abc296a..07fbcdf099e0c4a32ac075d0761cd0f9898289af 100755 (executable)
@@ -45,13 +45,15 @@ check_prog yes
        else
                echo TIMEOUT >> $LOG
        fi
-) | $STRACE -o/dev/null sh -c "exec <&- >&-; $SLEEP_A_BIT; $SLEEP_A_BIT"
+) | $STRACE -qq -enone -esignal=none \
+       sh -c "exec <&- >&-; $SLEEP_A_BIT; $SLEEP_A_BIT"
 
 if [ -s "$LOG" ]; then
        fail_ "$STRACE failed to redirect standard input"
 fi
 
-$STRACE -o/dev/null sh -c "exec <&- >&-; $SLEEP_A_BIT; $SLEEP_A_BIT" |
+$STRACE -qq -enone -esignal=none \
+       sh -c "exec <&- >&-; $SLEEP_A_BIT; $SLEEP_A_BIT" |
 (
        $SLEEP_A_BIT &
        cat > /dev/null