From 22a97af22616d4a62b60a247fb301356e379ae7c Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 23 Jun 2011 18:05:06 +0200 Subject: [PATCH] Only compile byte_extract unittests if --enable-unittests is enabled. --- src/detect-byte-extract.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detect-byte-extract.c b/src/detect-byte-extract.c index ff00110aee..f2b566ba03 100644 --- a/src/detect-byte-extract.c +++ b/src/detect-byte-extract.c @@ -759,6 +759,8 @@ SigMatch *DetectByteExtractRetrieveSMVar(const char *arg, Signature *s, int list /*************************************Unittests********************************/ +#ifdef UNITTESTS + int DetectByteExtractTest01(void) { int result = 0; @@ -4897,6 +4899,7 @@ int DetectByteExtractTest61(void) return result; } +#endif /* UNITTESTS */ void DetectByteExtractRegisterTests(void) {