Commit 3fe38b45 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 30096704
......@@ -76,13 +76,7 @@ cachetable_count_pinned_test (int n) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
cachetable_count_pinned_test(8);
return 0;
}
......@@ -84,13 +84,7 @@ cachetable_debug_test (int n) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
cachetable_debug_test(8);
return 0;
}
......@@ -48,13 +48,7 @@ cachetable_fd_test (void) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
cachetable_fd_test();
return 0;
}
......@@ -104,13 +104,7 @@ test_cachetable_flush (int n) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
test_cachetable_flush(8);
return 0;
}
......@@ -81,13 +81,7 @@ cachetable_getandpin_test (int n) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
cachetable_getandpin_test(8);
return 0;
}
......@@ -88,13 +88,7 @@ cachetable_put_test (int n) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
cachetable_put_test(8);
return 0;
}
......@@ -178,6 +178,7 @@ int main (int argc, const char *argv[]) {
int do_malloc_fail = 0;
// parse args
default_parse_args(argc, argv);
int i;
for (i=1; i<argc; i++) {
const char *arg = argv[i];
......
......@@ -670,6 +670,7 @@ int main (int argc, const char *argv[]) {
int do_malloc_fail = 0;
// parse args
default_parse_args(argc, argv);
int i;
for (i=1; i<argc; i++) {
const char *arg = argv[i];
......
......@@ -78,13 +78,7 @@ cachetable_unpin_test (int n) {
}
int main(int argc, const char *argv[]) {
int i;
for (i=1; i<argc; i++) {
if (strcmp(argv[i], "-v") == 0) {
verbose++;
continue;
}
}
default_parse_args(argc, argv);
cachetable_unpin_test(8);
return 0;
}
......@@ -9,13 +9,11 @@ struct testlist {
int tag;
};
static void
testlist_init (struct testlist *tl, int tag) {
static void testlist_init (struct testlist *tl, int tag) {
tl->tag = tag;
}
static void
test_push_pop (int n) {
static void test_push_pop (int n) {
int i;
struct list head;
......@@ -45,8 +43,7 @@ test_push_pop (int n) {
assert(list_empty(&head));
}
static void
test_push_pop_head (int n) {
static void test_push_pop_head (int n) {
int i;
struct list head;
......@@ -77,8 +74,7 @@ test_push_pop_head (int n) {
assert(list_empty(&head));
}
static void
test_push_head_pop (int n) {
static void test_push_head_pop (int n) {
int i;
struct list head;
......@@ -109,9 +105,9 @@ test_push_head_pop (int n) {
assert(list_empty(&head));
}
#if 0
// cant move an empty list
static void
test_move_empty (void) {
static void test_move_empty (void) {
struct list h1, h2;
list_init(&h1);
......@@ -120,9 +116,9 @@ test_move_empty (void) {
assert(list_empty(&h2));
assert(list_empty(&h1));
}
#endif
static void
test_move (int n) {
static void test_move (int n) {
struct list h1, h2;
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