strace/tests/munlockall.c
Dmitry V. Levin 1df0986c75 tests: workaround systemd-nspawn habit of disabling munlockall syscall
* tests/munlockall.c (main): Do not assume that munlockall syscall
always succeeds.
2018-08-22 20:38:27 +00:00

14 lines
181 B
C

#include "tests.h"
#include <stdio.h>
#include <sys/mman.h>
int
main(void)
{
printf("munlockall() = %s\n", sprintrc(munlockall()));
puts("+++ exited with 0 +++");
return 0;
}