diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter_test.c | 12 | ||||
-rw-r--r-- | filter/tree_test.c | 8 | ||||
-rw-r--r-- | filter/trie_test.c | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/filter/filter_test.c b/filter/filter_test.c index 693b1fe0..82efae0b 100644 --- a/filter/filter_test.c +++ b/filter/filter_test.c @@ -48,20 +48,20 @@ run_function(const void *parsed_fn_def) rfree(tmp); if (res.type == T_RETURN && res.val.i >= F_REJECT) - return BT_FAILURE; + return 0; - return BT_SUCCESS; + return 1; } static void bt_assert_filter(int result, struct f_inst *assert) { - int bt_suit_case_result = BT_SUCCESS; + int bt_suit_case_result = 1; if (!result) { - bt_result = BT_FAILURE; - bt_suite_result = BT_FAILURE; - bt_suit_case_result = BT_FAILURE; + bt_result = 0; + bt_suite_result = 0; + bt_suit_case_result = 0; } bt_log_suite_case_result(bt_suit_case_result, "Assertion at line %d (%s)", assert->lineno, (char *) assert->a2.p); diff --git a/filter/tree_test.c b/filter/tree_test.c index abe955d0..e224a559 100644 --- a/filter/tree_test.c +++ b/filter/tree_test.c @@ -174,7 +174,7 @@ t_balancing(void) bt_assert(same_tree(balanced_tree_from_simple, expected_balanced_tree)); } - return BT_SUCCESS; + return 1; } @@ -205,7 +205,7 @@ t_balancing_random(void) } } - return BT_SUCCESS; + return 1; } static int @@ -231,7 +231,7 @@ t_find(void) } } - return BT_SUCCESS; + return 1; } static uint @@ -287,7 +287,7 @@ t_find_ranges(void) } } - return BT_SUCCESS; + return 1; } int diff --git a/filter/trie_test.c b/filter/trie_test.c index 3d780335..7529a5c5 100644 --- a/filter/trie_test.c +++ b/filter/trie_test.c @@ -130,7 +130,7 @@ t_match_net(void) } bt_bird_cleanup(); - return BT_SUCCESS; + return 1; } static int @@ -170,7 +170,7 @@ t_trie_same(void) } } - return BT_SUCCESS; + return 1; } int |