From: Fei Jie Date: Wed, 11 May 2016 07:07:29 +0000 (+0800) Subject: tests: add munlockall.test X-Git-Tag: v4.12~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01d16ccb96f2141470a16323d2fb81246563a2fe;p=strace 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 acf92c8b..0eae082e 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -126,6 +126,7 @@ mmap64 mmsg move_pages mq +munlockall nanosleep net-accept-connect net-icmp_filter diff --git a/tests/Makefile.am b/tests/Makefile.am index 34616d4e..da1d59db 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 00000000..9ac69423 --- /dev/null +++ b/tests/munlockall.c @@ -0,0 +1,13 @@ +#include "tests.h" + +#include +#include + +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 00000000..e25d60a8 --- /dev/null +++ b/tests/munlockall.test @@ -0,0 +1,6 @@ +#!/bin/sh + +# Check munlockall syscall decoding. + +. "${srcdir=.}/init.sh" +run_strace_match_diff -a13