strace/tests/nanosleep.test
Dmitry V. Levin 593602ce5a tests: add nanosleep.test
* 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.
2015-09-19 04:04:48 +03:00

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