[PATCH 1/3] tests: add mlock.test

Dmitry V. Levin ldv at altlinux.org
Thu Apr 28 01:52:27 UTC 2016


On Wed, Apr 27, 2016 at 04:54:19PM +0800, Fei Jie wrote:
> * tests/mlock.c: New file.
> * tests/mlock.test: New test.
> * tests/.gitignore: Add mlock.
> * tests/Makefile.am (check_PROGRAMS): Likewise.
> (DECODER_TESTS): Add mlock.test.
[...]
> new file mode 100644
> index 0000000..b75aab9
> --- /dev/null
> +++ b/tests/mlock.c
> @@ -0,0 +1,38 @@
> +#include "tests.h"
> +#include <sys/syscall.h>
> +
> +#if defined __NR_mlock && defined __NR_munlock
> +
> +# include <stdio.h>
> +# include <unistd.h>
> +# include <sys/mman.h>

sys/mman.h is not needed for this test, otherwise looks OK.

Applied, thanks.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160428/4da1857d/attachment.bin>


More information about the Strace-devel mailing list