strace/tests/umount2.test
Dmitry V. Levin 08a178366a tests: add umount.test and umount2.test
* tests/umount.c: New file.
* tests/umount2.c: Likewise.
* tests/umount.test: New test.
* tests/umount2.test: Likewise.
* tests/Makefile.am (check_PROGRAMS): Add umount and umount2.
(TESTS): Add umount.test and umount2.test.
* tests/.gitignore: Add umount and umount2.
2015-12-07 01:23:39 +00:00

18 lines
276 B
Bash
Executable File

#!/bin/sh
# Check umount2 syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
case "$STRACE_ARCH" in
alpha|ia64) syscall=umount ;;
*) syscall=umount2 ;;
esac
OUT="$LOG.out"
run_strace -s7 -e$syscall $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0