projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Made sure memory was freed after calling memcached_get.
[awesomized/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index d0d5329245a6ed398308a267b6c8c67127cb596a..7f7879dc14f65c2cedd108ee6764776b15afe12f 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-37,9
+37,9
@@
static const char *test_strerror(test_return_t code)
case TEST_SKIPPED:
return "skipped";
case TEST_MAXIMUM_RETURN:
case TEST_SKIPPED:
return "skipped";
case TEST_MAXIMUM_RETURN:
- default:
+ default:
fprintf(stderr, "Unknown return value\n");
fprintf(stderr, "Unknown return value\n");
- a
ssert(0
);
+ a
bort(
);
}
}
}
}
@@
-63,7
+63,7
@@
int main(int argc, char *argv[])
if (world.create)
world_ptr= world.create();
if (world.create)
world_ptr= world.create();
- else
+ else
world_ptr= NULL;
startup_ptr= (server_startup_st *)world_ptr;
world_ptr= NULL;
startup_ptr= (server_startup_st *)world_ptr;
@@
-132,7
+132,7
@@
int main(int argc, char *argv[])
gettimeofday(&end_time, NULL);
load_time= timedif(end_time, start_time);
gettimeofday(&end_time, NULL);
load_time= timedif(end_time, start_time);
- fprintf(stderr, "\t\t\t\t\t %ld.%03ld [ %s ]\n", load_time / 1000,
+ fprintf(stderr, "\t\t\t\t\t %ld.%03ld [ %s ]\n", load_time / 1000,
load_time % 1000, test_strerror(failed));
if (next->post)
load_time % 1000, test_strerror(failed));
if (next->post)