strace/tests/old_mmap.test
Dmitry V. Levin 3db07f11c8 Fix old_mmap output when mmap arguments are unfetchable
* mem.c (SYS_FUNC(old_mmap)): Use umove_or_printaddr instead of umoven
to fetch mmap arguments, return RVAL_DECODED when umove_or_printaddr
fails.
* tests/old_mmap.c (main): Check it.
2016-04-23 00:07:14 +00:00

7 lines
133 B
Bash
Executable File

#!/bin/sh
# Check decoding of "old mmap" edition of mmap syscall.
. "${srcdir=.}/init.sh"
run_strace_match_diff -a11 -e trace=mmap