]> granicus.if.org Git - strace/commitdiff
tests: workaround systemd-nspawn habit of disabling munlockall syscall
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 22 Aug 2018 20:38:27 +0000 (20:38 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 22 Aug 2018 20:38:27 +0000 (20:38 +0000)
* tests/munlockall.c (main): Do not assume that munlockall syscall
always succeeds.

tests/munlockall.c

index 9ac69423f247b1b0cc494f141c32017455821502..337cd3e0db9fcabeb3b78d7b4dc07113b5ac4f5d 100644 (file)
@@ -6,7 +6,7 @@
 int
 main(void)
 {
-       printf("munlockall() = %d\n", munlockall());
+       printf("munlockall() = %s\n", sprintrc(munlockall()));
 
        puts("+++ exited with 0 +++");
        return 0;