Dmitry V. Levin
08a178366a
* 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.
18 lines
277 B
Bash
Executable File
18 lines
277 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check umount syscall decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
case "$STRACE_ARCH" in
|
|
alpha) syscall=oldumount ;;
|
|
*) syscall=umount ;;
|
|
esac
|
|
OUT="$LOG.out"
|
|
run_strace -a24 -s6 -e$syscall $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|