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.
OUT="$LOG.out"
syscalls=io_setup,io_submit,io_getevents,io_cancel,io_destroy
run_strace -a14 -e trace=$syscalls $args > "$OUT"
-match_diff "$LOG" "$OUT"
+match_diff "$OUT" "$LOG"
rm -f "$OUT"
exit 0
alpha|mips|or1k|s390|s390x)
# These architectures use the same register
# both for syscall number and syscall return code.
- match_diff "$LOG" "$srcdir/restart_syscall_unknown.expected"
+ match_diff "$srcdir/restart_syscall_unknown.expected" "$LOG"
;;
*) match_diff
;;
run_prog > /dev/null
run_strace -veprctl $args > "$OUT"
-match_diff "$LOG" "$OUT"
+match_diff "$OUT" "$LOG"
rm -f "$OUT"
run_strace -veexecve -s262144 $args > "$EXP"
check_prog sed
sed 1d < "$LOG" > "$OUT"
-match_diff "$OUT" "$EXP"
+match_diff "$EXP" "$OUT"
rm -f "$EXP" "$OUT"