Dmitry V. Levin
f008b01b69
* 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.
14 lines
207 B
Bash
Executable File
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
|