strace/tests/alarm.test
Dmitry V. Levin 7c05954cd8 tests: add alarm.test
* tests/alarm.c: New file.
* tests/alarm.test: New test.
* tests/.gitignore: Add alarm.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add alarm.test.
2016-02-14 22:30:27 +00:00

12 lines
182 B
Bash
Executable File

#!/bin/sh
# Check alarm syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a10 -ealarm $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"