strace/tests/acct.test
Fei Jie 275d135ec2 tests: add acct.test
* tests/acct.c: New file.
* tests/acct.test: New test.
* tests/.gitignore: Add acct.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add acct.test.
2016-03-09 06:07:06 +00:00

12 lines
180 B
Bash
Executable File

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