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