projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix for minor rewrite in clone method of number of hosts.
[awesomized/libmemcached]
/
tests
/
test.c
diff --git
a/tests/test.c
b/tests/test.c
index 765149ecb66c7279c155cd7709919648ed132f36..990f15e7483afc02e4dc2d22f79404aa4274ce20 100644
(file)
--- a/
tests/test.c
+++ b/
tests/test.c
@@
-10,6
+10,7
@@
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>
+#include <fnmatch.h>
#include "test.h"
#include "test.h"
@@
-119,7
+120,7
@@
int main(int argc, char *argv[])
test_st *run;
run= next->tests;
test_st *run;
run= next->tests;
- if (collection_to_run &&
strcmp(collection_to_run, next->name
))
+ if (collection_to_run &&
fnmatch(collection_to_run, next->name, FNM_CASEFOLD
))
continue;
fprintf(stderr, "\n%s\n\n", next->name);
continue;
fprintf(stderr, "\n%s\n\n", next->name);
@@
-131,7
+132,7
@@
int main(int argc, char *argv[])
memcached_return rc;
struct timeval start_time, end_time;
memcached_return rc;
struct timeval start_time, end_time;
- if (wildcard &&
strcmp(wildcard, run->name
))
+ if (wildcard &&
fnmatch(wildcard, run->name, FNM_CASEFOLD
))
continue;
fprintf(stderr, "Testing %s", run->name);
continue;
fprintf(stderr, "Testing %s", run->name);