Browse Source

Experiment to fix and extend unit tests

bel 8 years ago
parent
commit
6767ab6055
2 changed files with 6 additions and 5 deletions
  1. 4 3
      test/private.c
  2. 2 2
      test/timertest.c

+ 4 - 3
test/private.c

@@ -33,13 +33,14 @@
 #undef MEMORY_DEBUGGING
 #endif
 
+#include <stdlib.h>
+#include <time.h>
+
 #define USE_TIMERS
-#define CIVETWEB_API static
+//#define CIVETWEB_API static
 #include "../include/civetweb.h"
 #include "../src/civetweb.c"
 
-#include <stdlib.h>
-
 #include "private.h"
 
 /* This unit test file uses the excellent Check unit testing library.

+ 2 - 2
test/timertest.c

@@ -29,14 +29,14 @@
 #endif
 #endif
 
+#include <stdlib.h>
+#include <time.h>
 
 #define USE_TIMERS
 #define CIVETWEB_API static
 #include "../include/civetweb.h"
 #include "../src/civetweb.c"
 
-#include <stdlib.h>
-
 #include "timertest.h"