strace/tests/getrandom.test
Dmitry V. Levin f008b01b69 tests: convert getrandom.test from match_awk to match_diff
* tests/getrandom.c (main): Print expected output.
* tests/getrandom.test: Use match_diff instead of match_awk.
* tests/getrandom.awk: Remove.
* tests/Makefile.am (EXTRA_DIST): Remove getrandom.awk.
2015-08-28 08:16:43 +00:00

14 lines
207 B
Bash
Executable File

#!/bin/sh
# Check getrandom syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -e getrandom -xx -s3 -a32 $args > "$OUT"
match_diff "$OUT" "$LOG"
rm -f "$OUT"
exit 0