]> granicus.if.org Git - strace/blob - tests/opipe.test
tests: add a list of executables without side effects
[strace] / tests / opipe.test
1 #!/bin/sh
2
3 # Check how -o '|pipe' works.
4
5 . "${srcdir=.}/init.sh"
6
7 check_prog grep
8 run_prog grep chdir $srcdir/umovestr.expected > "$EXP"
9 run_prog ../umovestr
10
11 > "$LOG" || fail_ "failed to write $LOG"
12 $STRACE -o "|cat > $LOG && $SLEEP_A_BIT && grep chdir < $LOG > $OUT" -e chdir $args ||
13         dump_log_and_fail_with "$STRACE $args failed"
14
15 match_diff "$OUT" "$EXP"
16 rm -f "$EXP" "$OUT"