strace/tests/umovestr2.test
Dmitry V. Levin f6a36f0c9e tests: fix match_diff usage
The first argument of match_diff should be the file with expected
output, the second argument - the file with actual output.

* tests/aio.test: Swap match_diff arguments.
* tests/restart_syscall.test: Likewise.
* tests/seccomp.test: Likewise.
* tests/umovestr2.test: Likewise.
2015-08-27 00:09:46 +00:00

19 lines
266 B
Bash
Executable File

#!/bin/sh
# umovestr short read regression test
. "${srcdir=.}/init.sh"
OUT="$LOG.out"
EXP="$LOG.exp"
run_prog > /dev/null
run_strace -veexecve -s262144 $args > "$EXP"
check_prog sed
sed 1d < "$LOG" > "$OUT"
match_diff "$EXP" "$OUT"
rm -f "$EXP" "$OUT"
exit 0