]> granicus.if.org Git - strace/commit
tests: robustify old_mmap test
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jul 2019 17:46:47 +0000 (17:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 16 Jul 2019 17:46:47 +0000 (17:46 +0000)
commit3c1e8ac55cb1385a75641095179cef906d482cc4
tree52f130a9c919cd55006c07fb29ef69411aa4f975
parentcfed768b5802d16c6d462f65a0d709c70b2cda44
tests: robustify old_mmap test

Do not assume that old mmap syscall is implemented in the kernel
when __NR_mmap is defined.

* tests/alarm.c (main): Print mmap return code using sprintrc,
do not invoke mprotect if mmap is not implemented.
tests/old_mmap.c