MErge Trond
[awesomized/libmemcached] / tests / test.c
index 920ffe5f8f5b1836ee860c8c885d3a0755c66e02..7480d29d5798068b0c8a511361bed0b840010d62 100644 (file)
@@ -44,6 +44,12 @@ static const char *test_strerror(test_return_t code)
 
 }
 
+void create_core(void)
+{
+   if (getenv("LIBMEMCACHED_NO_COREDUMP") == NULL && fork() == 0)
+     abort();
+}
+
 int main(int argc, char *argv[])
 {
   test_return_t failed;