aboutsummaryrefslogtreecommitdiffstats
path: root/tests/abort-nodump.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/abort-nodump.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/abort-nodump.c b/tests/abort-nodump.c
new file mode 100644
index 0000000..9e13595
--- /dev/null
+++ b/tests/abort-nodump.c
@@ -0,0 +1,9 @@
+#include <sys/prctl.h>
+#include <stdlib.h>
+
+int
+main(void)
+{
+ prctl(PR_SET_DUMPABLE, 0);
+ abort();
+}