As virtually every test defines either one or both of OUT and ERR variables and these definitions are exactly the same, move definitions of these variables from individual tests to init.sh. * tests/init.sh (OUT, ERR): New variables. * tests/ipc.sh: Remove initialization of OUT variable. * tests/statx.sh: Likewise. * tests/*.test: Remove initialization of OUT and ERR variables.
17 lines
380 B
Bash
Executable File
17 lines
380 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check how -o '|pipe' works.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
check_prog grep
|
|
run_prog grep chdir $srcdir/umovestr.expected > "$EXP"
|
|
run_prog ./umovestr
|
|
|
|
> "$LOG" || fail_ "failed to write $LOG"
|
|
$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"
|
|
rm -f "$EXP" "$OUT"
|