summaryrefslogtreecommitdiff
path: root/src/3rd_party/dbus-1.7.8/test/test-segfault.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rd_party/dbus-1.7.8/test/test-segfault.c')
-rw-r--r--src/3rd_party/dbus-1.7.8/test/test-segfault.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/3rd_party/dbus-1.7.8/test/test-segfault.c b/src/3rd_party/dbus-1.7.8/test/test-segfault.c
deleted file mode 100644
index 329a21fd08..0000000000
--- a/src/3rd_party/dbus-1.7.8/test/test-segfault.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* This is simply a process that segfaults */
-#include <config.h>
-#include <stdlib.h>
-#ifdef HAVE_SIGNAL_H
-#include <signal.h>
-#endif
-
-#ifdef HAVE_SETRLIMIT
-#include <sys/resource.h>
-#endif
-
-int
-main (int argc, char **argv)
-{
- char *p;
-
-#if HAVE_SETRLIMIT
- struct rlimit r = { 0, };
-
- getrlimit (RLIMIT_CORE, &r);
- r.rlim_cur = 0;
- setrlimit (RLIMIT_CORE, &r);
-
- raise (SIGSEGV);
-#endif
- p = NULL;
- *p = 'a';
-
- return 0;
-}