huangcm
2025-08-25 f350412dc55c15118d0a7925d1071877498e5e24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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"