summaryrefslogtreecommitdiff
path: root/tests/getrandom.test
blob: c4586e1d76feec4d8ed79e61616eba7f22f5b462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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 "$LOG" "$OUT"
rm -f "$OUT"

exit 0