summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-03-11 17:01:29 -0800
committerGerald Combs <gerald@wireshark.org>2016-03-14 15:54:26 +0000
commitd877dcc1c40d6d231778a27eeabb2f525aa8c03a (patch)
tree71aeb74bfa1eab253f1d5608bdd2d0418279616c /tshark.c
parent54798eee3b5b93b0324fe865e33ab21935e51cca (diff)
downloadwireshark-d877dcc1c40d6d231778a27eeabb2f525aa8c03a.tar.gz
Parallelize fuzz-test.sh
Run each "argument" test (e.g. "-nVxr" and "-nr") simultaneously in the background. This should speed up our tests without reducing the amount of fuzzing that we do. Change-Id: I737d1dc09b31e07910d56632bec62da0f35fe222 Reviewed-on: https://code.wireshark.org/review/14432 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 75489e605d..df41600762 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1103,6 +1103,9 @@ main(int argc, char *argv[])
g_string_free(comp_info_str, TRUE);
g_string_free(runtime_info_str, TRUE);
+ /* Fail sometimes. Useful for testing fuzz scripts. */
+ /* if (g_random_int_range(0, 100) < 5) abort(); */
+
/*
* In order to have the -X opts assigned before the wslua machine starts
* we need to call getopt_long before epan_init() gets called.