You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
311 B

#!/bin/sh
# Check how -o '|pipe' works.
. "${srcdir=.}/init.sh"
check_prog grep
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"