diff options
author | Andrey Vagin | 2013-05-01 00:28:00 +0200 |
---|---|---|
committer | Linus Torvalds | 2013-05-01 02:04:05 +0200 |
commit | 17afab1de42236ee2f6235f4383cc6f3f13f8a10 (patch) | |
tree | c8f71b721668ecca27e9bb802ffc7a58935ed0ff /tools/testing/selftests/ptrace/Makefile | |
parent | ptrace: add ability to retrieve signals without removing from a queue (v4) (diff) | |
download | kernel-qcow2-linux-17afab1de42236ee2f6235f4383cc6f3f13f8a10.tar.gz kernel-qcow2-linux-17afab1de42236ee2f6235f4383cc6f3f13f8a10.tar.xz kernel-qcow2-linux-17afab1de42236ee2f6235f4383cc6f3f13f8a10.zip |
selftest: add a test case for PTRACE_PEEKSIGINFO
* Dump signals from process-wide and per-thread queues with
different sizes of buffers.
* Check error paths for buffers with restricted permissions. A part of
buffer or a whole buffer is for read-only.
* Try to get nonexistent signal.
Signed-off-by: Andrew Vagin <avagin@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Dave Jones <davej@redhat.com>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Pedro Alves <palves@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/ptrace/Makefile')
-rw-r--r-- | tools/testing/selftests/ptrace/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile new file mode 100644 index 000000000000..47ae2d385ce8 --- /dev/null +++ b/tools/testing/selftests/ptrace/Makefile @@ -0,0 +1,10 @@ +CFLAGS += -iquote../../../../include/uapi -Wall +peeksiginfo: peeksiginfo.c + +all: peeksiginfo + +clean: + rm -f peeksiginfo + +run_tests: all + @./peeksiginfo || echo "peeksiginfo selftests: [FAIL]" |