Commit 95f5a224 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

compile with either gcc or icc. addresses #1185

git-svn-id: file:///svn/tokudb.1131b+1080a+1185@6378 c7de825b-a66e-492c-adef-691d508d4ae1
parent 4c5c2a27
...@@ -76,13 +76,7 @@ cachetable_count_pinned_test (int n) { ...@@ -76,13 +76,7 @@ cachetable_count_pinned_test (int n) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
cachetable_count_pinned_test(8); cachetable_count_pinned_test(8);
return 0; return 0;
} }
...@@ -84,13 +84,7 @@ cachetable_debug_test (int n) { ...@@ -84,13 +84,7 @@ cachetable_debug_test (int n) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
cachetable_debug_test(8); cachetable_debug_test(8);
return 0; return 0;
} }
...@@ -48,13 +48,7 @@ cachetable_fd_test (void) { ...@@ -48,13 +48,7 @@ cachetable_fd_test (void) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
cachetable_fd_test(); cachetable_fd_test();
return 0; return 0;
} }
...@@ -104,13 +104,7 @@ test_cachetable_flush (int n) { ...@@ -104,13 +104,7 @@ test_cachetable_flush (int n) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
test_cachetable_flush(8); test_cachetable_flush(8);
return 0; return 0;
} }
...@@ -81,13 +81,7 @@ cachetable_getandpin_test (int n) { ...@@ -81,13 +81,7 @@ cachetable_getandpin_test (int n) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
cachetable_getandpin_test(8); cachetable_getandpin_test(8);
return 0; return 0;
} }
...@@ -88,13 +88,7 @@ cachetable_put_test (int n) { ...@@ -88,13 +88,7 @@ cachetable_put_test (int n) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
cachetable_put_test(8); cachetable_put_test(8);
return 0; return 0;
} }
...@@ -178,6 +178,7 @@ int main (int argc, const char *argv[]) { ...@@ -178,6 +178,7 @@ int main (int argc, const char *argv[]) {
int do_malloc_fail = 0; int do_malloc_fail = 0;
// parse args // parse args
default_parse_args(argc, argv);
int i; int i;
for (i=1; i<argc; i++) { for (i=1; i<argc; i++) {
const char *arg = argv[i]; const char *arg = argv[i];
......
...@@ -670,6 +670,7 @@ int main (int argc, const char *argv[]) { ...@@ -670,6 +670,7 @@ int main (int argc, const char *argv[]) {
int do_malloc_fail = 0; int do_malloc_fail = 0;
// parse args // parse args
default_parse_args(argc, argv);
int i; int i;
for (i=1; i<argc; i++) { for (i=1; i<argc; i++) {
const char *arg = argv[i]; const char *arg = argv[i];
......
...@@ -78,13 +78,7 @@ cachetable_unpin_test (int n) { ...@@ -78,13 +78,7 @@ cachetable_unpin_test (int n) {
} }
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
int i; default_parse_args(argc, argv);
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
cachetable_unpin_test(8); cachetable_unpin_test(8);
return 0; return 0;
} }
...@@ -9,13 +9,11 @@ struct testlist { ...@@ -9,13 +9,11 @@ struct testlist {
int tag; int tag;
}; };
static void static void testlist_init (struct testlist *tl, int tag) {
testlist_init (struct testlist *tl, int tag) {
tl->tag = tag; tl->tag = tag;
} }
static void static void test_push_pop (int n) {
test_push_pop (int n) {
int i; int i;
struct list head; struct list head;
...@@ -45,8 +43,7 @@ test_push_pop (int n) { ...@@ -45,8 +43,7 @@ test_push_pop (int n) {
assert(list_empty(&head)); assert(list_empty(&head));
} }
static void static void test_push_pop_head (int n) {
test_push_pop_head (int n) {
int i; int i;
struct list head; struct list head;
...@@ -77,8 +74,7 @@ test_push_pop_head (int n) { ...@@ -77,8 +74,7 @@ test_push_pop_head (int n) {
assert(list_empty(&head)); assert(list_empty(&head));
} }
static void static void test_push_head_pop (int n) {
test_push_head_pop (int n) {
int i; int i;
struct list head; struct list head;
...@@ -109,9 +105,9 @@ test_push_head_pop (int n) { ...@@ -109,9 +105,9 @@ test_push_head_pop (int n) {
assert(list_empty(&head)); assert(list_empty(&head));
} }
#if 0
// cant move an empty list // cant move an empty list
static void static void test_move_empty (void) {
test_move_empty (void) {
struct list h1, h2; struct list h1, h2;
list_init(&h1); list_init(&h1);
...@@ -120,9 +116,9 @@ test_move_empty (void) { ...@@ -120,9 +116,9 @@ test_move_empty (void) {
assert(list_empty(&h2)); assert(list_empty(&h2));
assert(list_empty(&h1)); assert(list_empty(&h1));
} }
#endif
static void static void test_move (int n) {
test_move (int n) {
struct list h1, h2; struct list h1, h2;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment