projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
memcached_behavior() causes commands to be buffered until they are flushed to
[m6w6/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index 60db54cbd8969269d3dad0b6468a4f6be50dc9f6..653a3ddc905511e932814ab823eb6b388c14a5b9 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-76,6
+76,7
@@
int main(int argc, char *argv[])
char *wildcard= NULL;
memcached_server_st *servers;
collection_st *collection;
char *wildcard= NULL;
memcached_server_st *servers;
collection_st *collection;
+ collection_st *next;
uint8_t failed;
collection= gets_collections();
uint8_t failed;
collection= gets_collections();
@@
-113,7
+114,6
@@
int main(int argc, char *argv[])
printf("\n");
printf("\n");
- collection_st *next;
for (next= collection; next->name; next++)
{
test_st *run;
for (next= collection; next->name; next++)
{
test_st *run;
@@
-130,6
+130,7
@@
int main(int argc, char *argv[])
memcached_st *memc;
memcached_return rc;
struct timeval start_time, end_time;
memcached_st *memc;
memcached_return rc;
struct timeval start_time, end_time;
+ long int load_time;
if (wildcard && fnmatch(wildcard, run->name, 0))
continue;
if (wildcard && fnmatch(wildcard, run->name, 0))
continue;
@@
-169,7
+170,7
@@
int main(int argc, char *argv[])
gettimeofday(&start_time, NULL);
failed= run->function(memc);
gettimeofday(&end_time, NULL);
gettimeofday(&start_time, NULL);
failed= run->function(memc);
gettimeofday(&end_time, NULL);
- lo
ng int lo
ad_time= timedif(end_time, start_time);
+ load_time= timedif(end_time, start_time);
if (failed)
fprintf(stderr, "\t\t\t\t\t %ld.%03ld [ failed ]\n", load_time / 1000,
load_time % 1000);
if (failed)
fprintf(stderr, "\t\t\t\t\t %ld.%03ld [ failed ]\n", load_time / 1000,
load_time % 1000);