tests: add munlockall.test
* tests/munlockall.c: New file.
* tests/munlockall.test: New test.
* tests/.gitignore: Add munlockall.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add munlockall.test.
diff --git a/tests/.gitignore b/tests/.gitignore
index acf92c8..0eae082 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -126,6 +126,7 @@
mmsg
move_pages
mq
+munlockall
nanosleep
net-accept-connect
net-icmp_filter
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 34616d4..da1d59d 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -179,6 +179,7 @@
mmsg \
move_pages \
mq \
+ munlockall \
nanosleep \
net-accept-connect \
net-icmp_filter \
@@ -462,6 +463,7 @@
mmsg.test \
move_pages.test \
mq.test \
+ munlockall.test \
nanosleep.test \
net-icmp_filter.test \
net-y-unix.test \
diff --git a/tests/munlockall.c b/tests/munlockall.c
new file mode 100644
index 0000000..9ac6942
--- /dev/null
+++ b/tests/munlockall.c
@@ -0,0 +1,13 @@
+#include "tests.h"
+
+#include <stdio.h>
+#include <sys/mman.h>
+
+int
+main(void)
+{
+ printf("munlockall() = %d\n", munlockall());
+
+ puts("+++ exited with 0 +++");
+ return 0;
+}
diff --git a/tests/munlockall.test b/tests/munlockall.test
new file mode 100755
index 0000000..e25d60a
--- /dev/null
+++ b/tests/munlockall.test
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Check munlockall syscall decoding.
+
+. "${srcdir=.}/init.sh"
+run_strace_match_diff -a13