aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-15 23:43:00 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-15 23:43:00 -0800
commit64b1b5ca38b3b2d5ccfb84a01d8ad13299b8c581 (patch)
tree1e27956648467dcdf75d1ac8f8b223f5c9e7398f /fish_tests.cpp
parent0627ae82fb2366aa140b986e80f2e68b822e4242 (diff)
parent8e77aca854f3b4aa28fbd5c6a190988a35c8918a (diff)
Merge branch 'master' into pager
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 6c536bca..8b08365b 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);
@@ -2815,4 +2815,7 @@ int main(int argc, char **argv)
event_destroy();
proc_destroy();
+ if(err_count != 0) {
+ return(1);
+ }
}