• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3# Check how -o '|pipe' works.
4
5. "${srcdir=.}/init.sh"
6
7check_prog grep
8run_prog grep chdir $srcdir/umovestr.expected > "$EXP"
9run_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
15match_diff "$OUT" "$EXP"
16rm -f "$EXP" "$OUT"
17