blob: e9c9b3ab3527dad36e36910638e82ce206e3dc72 [file] [log] [blame]
Dmitry V. Levine7d671b2015-03-19 22:03:32 +00001#!/bin/sh
2
3# Check mmap/mprotect/munmap syscalls decoding.
4
5. "${srcdir=.}/init.sh"
6
7syscall=mprotect,munmap
8for n in mmap mmap2 old_mmap; do
9 $STRACE -e$n -h > /dev/null && syscall=$syscall,$n
10done
11
12OUT="$LOG.out"
13
14run_prog > /dev/null
15run_strace -e$syscall $args > "$OUT"
16match_grep "$LOG" "$OUT"
17
18rm -f "$OUT"
19
20exit 0