From 7babb35aeb76704e98e584cf06a8620360ee95f0 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 17 Sep 2012 10:38:39 +0200 Subject: [PATCH] profiling: remove obsolete unit test --- src/util-profiling.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/util-profiling.c b/src/util-profiling.c index 135671d6fe..4eee57deab 100644 --- a/src/util-profiling.c +++ b/src/util-profiling.c @@ -786,43 +786,6 @@ const char * PacketProfileDetectIdToString(PacketProfileDetectId id) #ifdef UNITTESTS -static int -ProfilingTest01(void) -{ -#if 0 - uint16_t counter1; - - Signature sig; - sig.gid = 1; - sig.id = 1; - - SCProfilingInit(); - counter1 = SCProfilingRegisterRuleCounter(&sig); - if (counter1 == 0) - return 0; - rules_pca = SCPerfGetAllCountersArray(&rules_ctx); - if (rules_pca == NULL) - return 0; - SCProfilingCounterAddUI64(counter1, 64); - if (rules_pca->head[counter1].ui64_cnt != 64) - return 0; - if (rules_pca->head[counter1].syncs != 1) - return 0; - SCProfilingCounterAddUI64(counter1, 64); - if (rules_pca->head[counter1].ui64_cnt != 128) - return 0; - if (rules_pca->head[counter1].syncs != 2) - return 0; - if (rules_pca->head[counter1].wrapped_syncs != 0) - return 0; - - SCProfilingDump(); - - SCProfilingDestroy(); -#endif - return 1; -} - static int ProfilingGenericTicksTest01(void) { #define TEST_RUNS 1024 @@ -928,7 +891,6 @@ void SCProfilingRegisterTests(void) { #ifdef UNITTESTS - UtRegisterTest("ProfilingTest01", ProfilingTest01, 1); UtRegisterTest("ProfilingGenericTicksTest01", ProfilingGenericTicksTest01, 1); #endif /* UNITTESTS */ } -- 2.47.2