blob: e24e7366b0bbfc3614ed4351a0b6e3be5da33885 [file] [log] [blame]
#!/bin/sh
# Check mmap/mprotect/munmap syscalls decoding.
. "${srcdir=.}/init.sh"
syscall=mprotect,munmap
for n in mmap mmap2; do
$STRACE -e$n -h > /dev/null && syscall=$syscall,$n
done
OUT="$LOG.out"
run_prog > /dev/null
run_strace -e$syscall $args > "$OUT"
match_grep "$LOG" "$OUT"
rm -f "$OUT"
exit 0