allwinner_a64/android/external/strace/tests-m32/opipe.test
2018-08-08 16:14:42 +08:00

14 lines
320 B
Bash
Executable file

#!/bin/sh
# Check how -o '|pipe' works.
. "${srcdir=.}/init.sh"
check_prog grep
run_prog grep chdir $srcdir/umovestr.expected > "$EXP"
run_prog ../umovestr
$STRACE -o "|cat > $LOG && $SLEEP_A_BIT && grep chdir < $LOG > $OUT" -e chdir $args ||
dump_log_and_fail_with "$STRACE $args failed"
match_diff "$OUT" "$EXP"