Dmitry V. Levin
640623c41e
* tests/restart_syscall.c: New file. * tests/restart_syscall.expected: Remove. * tests/restart_syscall_unknown.expected: Remove. * tests/restart_syscall.test: Update to use restart_syscall. * tests/Makefile.am (check_PROGRAMS): Add restart_syscall. (EXTRA_DIST): Remove restart_syscall.expected and restart_syscall_unknown.expected. * tests/.gitignore: Add restart_syscall.
15 lines
256 B
Bash
Executable File
15 lines
256 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check how "resuming interrupted nanosleep" works.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
OUT="$LOG.out"
|
|
syscalls=nanosleep,restart_syscall
|
|
run_strace -a20 -e trace=$syscalls $args > "$OUT"
|
|
match_grep "$LOG" "$OUT"
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|