From 7874cdf52adcfb3fef0a528c893fe38d7054c197 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Wed, 15 Jan 2014 15:36:50 +0100 Subject: Replace size_t with unsigned long. size_t is not compatible type for `%lu`. --- fish_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fish_tests.cpp') diff --git a/fish_tests.cpp b/fish_tests.cpp index 6c536bca..b7f6535b 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -2322,14 +2322,14 @@ static void test_new_parser_fuzzing(void) double start = timef(); bool log_it = true; - size_t max_len = 5; - for (size_t len = 0; len < max_len; len++) + unsigned long max_len = 5; + for (unsigned long len = 0; len < max_len; len++) { if (log_it) fprintf(stderr, "%lu / %lu...", len, max_len); /* We wish to look at all permutations of 4 elements of 'fuzzes' (with replacement). Construct an int and keep incrementing it. */ - size_t permutation = 0; + unsigned long permutation = 0; while (string_for_permutation(fuzzes, sizeof fuzzes / sizeof *fuzzes, len, permutation++, &src)) { parse_tree_from_string(src, parse_flag_continue_after_error, &node_tree, &errors); -- cgit v1.2.3 From 568de7e8189fbf5c97987bfce9594fe404298ed1 Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 13 Jan 2014 22:35:38 +0800 Subject: fish_tests.cpp: set return value if tests fail --- fish_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fish_tests.cpp') diff --git a/fish_tests.cpp b/fish_tests.cpp index b7f6535b..8b08365b 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -2815,4 +2815,7 @@ int main(int argc, char **argv) event_destroy(); proc_destroy(); + if(err_count != 0) { + return(1); + } } -- cgit v1.2.3