Dmitry V. Levin
593602ce5a
* tests/nanosleep.c: New file. * tests/nanosleep.test: New test. * tests/Makefile.am (check_PROGRAMS): Add nanosleep. (TESTS): Add nanosleep.test. * tests/.gitignore: Add nanosleep.
15 lines
234 B
Bash
Executable File
15 lines
234 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check nanosleep syscall decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
OUT="$LOG.out"
|
|
syscalls=nanosleep,setitimer
|
|
run_strace -a20 -e trace=$syscalls $args > "$OUT"
|
|
match_diff "$OUT" "$LOG"
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|