Home | History | Annotate | Download | only in tests
      1 #!/bin/sh
      2 
      3 # Check mmap/mprotect/munmap syscalls decoding.
      4 
      5 . "${srcdir=.}/init.sh"
      6 
      7 syscall=mprotect,munmap
      8 for n in mmap mmap2; do
      9 	$STRACE -e$n -h > /dev/null && syscall=$syscall,$n
     10 done
     11 
     12 OUT="$LOG.out"
     13 
     14 run_prog > /dev/null
     15 run_strace -e$syscall $args > "$OUT"
     16 match_grep "$LOG" "$OUT"
     17 
     18 rm -f "$OUT"
     19 
     20 exit 0
     21