#ifdef UNITTESTS
-#if defined OS_FREEBSD || defined OS_DARWIN
-#define MICROSOFT_OFFICE_DOC "OLE 2 Compound Document"
-#else
-#define MICROSOFT_OFFICE_DOC "Microsoft Office Document"
-#endif
-
/** \test magic lib calls -- init */
static int MagicInitTest01(void)
{
#include "util-cpu.h"
-#define TEST_RUNS 1000000
-
static int MemcmpTest14 (void)
{
#ifdef PROFILING
+#define TEST_RUNS 1000000
uint64_t ticks_start = 0;
uint64_t ticks_end = 0;
const char *a[] = { "0123456789012345", "abc", "abcdefghij", "suricata", "test", "xyz", "rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr", "abcdefghijklmnopqrstuvwxyz", NULL };
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
-#define DEFAULT_LOG_FILENAME "profile.log"
-#define DEFAULT_LOG_MODE_APPEND "yes"
-
static pthread_mutex_t packet_profile_lock;
static FILE *packet_profile_csv_fp = NULL;
* #define ENABLE_SEARCH_STATS 1
*/
-/* Number of times to repeat the search (for stats) */
-#define STATS_TIMES 1000000
-
/**
* \brief Unittest helper function wrappers for the search algorithms
* \param text pointer to the buffer to search in
}
#ifdef ENABLE_SEARCH_STATS
+/* Number of times to repeat the search (for stats) */
+#define STATS_TIMES 1000000
+
/**
* \brief Unittest helper function wrappers for the search algorithms
* \param text pointer to the buffer to search in