Dmitry V. Levin
7c05954cd8
* tests/alarm.c: New file. * tests/alarm.test: New test. * tests/.gitignore: Add alarm. * tests/Makefile.am (check_PROGRAMS): Likewise. (TESTS): Add alarm.test.
12 lines
182 B
Bash
Executable File
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"
|