]> granicus.if.org Git - strace/blob - tests/mmap.test
Use printnum_int64 instead of print_loff_t
[strace] / tests / mmap.test
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 old_mmap; 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