]> granicus.if.org Git - strace/commitdiff
tests: add munlockall.test
authorFei Jie <feij.fnst@cn.fujitsu.com>
Wed, 11 May 2016 07:07:29 +0000 (15:07 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 11 May 2016 12:26:00 +0000 (12:26 +0000)
* 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.

tests/.gitignore
tests/Makefile.am
tests/munlockall.c [new file with mode: 0644]
tests/munlockall.test [new file with mode: 0755]

index acf92c8b8f128b3b71639aacd9efe055ef366fd3..0eae082ece461980f275140d5c73caaaa8d05164 100644 (file)
@@ -126,6 +126,7 @@ mmap64
 mmsg
 move_pages
 mq
+munlockall
 nanosleep
 net-accept-connect
 net-icmp_filter
index 34616d4e1255c6173bdbea020678cea4f5f284dc..da1d59db871d0570e171f413b9767653e0b64d29 100644 (file)
@@ -179,6 +179,7 @@ check_PROGRAMS = \
        mmsg \
        move_pages \
        mq \
+       munlockall \
        nanosleep \
        net-accept-connect \
        net-icmp_filter \
@@ -462,6 +463,7 @@ DECODER_TESTS = \
        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 (file)
index 0000000..9ac6942
--- /dev/null
@@ -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 (executable)
index 0000000..e25d60a
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Check munlockall syscall decoding.
+
+. "${srcdir=.}/init.sh"
+run_strace_match_diff -a13