From: Jason Ish Date: Tue, 8 Oct 2019 16:23:08 +0000 (-0600) Subject: detect/test: update test for file prune changes X-Git-Tag: suricata-5.0.0~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d0b3d73202861d2e7b1ed0487eea8a710e2f6d9;p=thirdparty%2Fsuricata.git detect/test: update test for file prune changes As the file prune is now moved to the flow worker, the file prune is run later, meaning the first file has not yet been pruned from the file container list. Adjust test to look for a second file, and check the flags on that file. For commit addressing bug 2490. --- diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index 000936f7fd..2f2c2b4c41 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -1107,6 +1107,8 @@ static int DeStateSigTest08(void) FAIL_IF_NULL(files); file = files->head; FAIL_IF_NULL(file); + file = file->next; + FAIL_IF_NULL(file); FAIL_IF_NOT(file->flags & FILE_STORE); AppLayerParserThreadCtxFree(alp_tctx);