xref: /aosp_15_r20/external/strace/tests-m32/opipe.test (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1#!/bin/sh
2
3# Check how -o '|pipe' works.
4
5. "${srcdir=.}/init.sh"
6
7check_prog grep
8grep chdir $srcdir/umovestr.expected > "$EXP"
9run_prog ../umovestr
10
11$STRACE -o "|cat > $LOG && $SLEEP_A_BIT && grep chdir < $LOG > $OUT" -e chdir $args ||
12	dump_log_and_fail_with "$STRACE $args failed"
13
14match_diff "$OUT" "$EXP"
15