From 2d0b3d73202861d2e7b1ed0487eea8a710e2f6d9 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 8 Oct 2019 10:23:08 -0600 Subject: [PATCH] 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. --- src/detect-engine-state.c | 2 ++ 1 file changed, 2 insertions(+) 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);