projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Style cleanup
[m6w6/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index 920ffe5f8f5b1836ee860c8c885d3a0755c66e02..7a5e3132a238c5a5d693574e86a1d6b039d2fe44 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-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;
int main(int argc, char *argv[])
{
test_return_t failed;
@@
-89,7
+95,7
@@
int main(int argc, char *argv[])
{
unsigned int loop;
memcached_st *memc;
{
unsigned int loop;
memcached_st *memc;
- memcached_return rc;
+ memcached_return
_t
rc;
struct timeval start_time, end_time;
long int load_time;
struct timeval start_time, end_time;
long int load_time;