From: Victor Julien Date: Fri, 19 Apr 2013 10:15:57 +0000 (+0200) Subject: stream: default 'random' setting when running unittests is disabled, so that test... X-Git-Tag: suricata-2.0beta1~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4fca88ba7f70b9697bf8d194dc70526224daa76;p=thirdparty%2Fsuricata.git stream: default 'random' setting when running unittests is disabled, so that test results are predictable. --- diff --git a/src/stream-tcp.c b/src/stream-tcp.c index e29637512f..d6033c0600 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -480,8 +480,10 @@ void StreamTcpInitConfig(char quiet) int randomize = 0; if ((ConfGetBool("stream.reassembly.randomize-chunk-size", &randomize)) == 0) { - /* randomize by default if value not set */ - randomize = 1; + /* randomize by default if value not set + * In ut mode we disable, to get predictible test results */ + if (!(RunmodeIsUnittests())) + randomize = 1; } if (randomize) {