aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/ptrace/Makefile
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2013-04-30 15:28:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-30 17:04:05 -0700
commit17afab1de42236ee2f6235f4383cc6f3f13f8a10 (patch)
treec8f71b721668ecca27e9bb802ffc7a58935ed0ff /tools/testing/selftests/ptrace/Makefile
parentptrace: add ability to retrieve signals without removing from a queue (v4) (diff)
downloadlinux-dev-17afab1de42236ee2f6235f4383cc6f3f13f8a10.tar.xz
linux-dev-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/Makefile10
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]"