Prechádzať zdrojové kódy

Experiment to fix and extend unit tests

bel 8 rokov pred
rodič
commit
6767ab6055
2 zmenil súbory, kde vykonal 6 pridanie a 5 odobranie
  1. 4 3
      test/private.c
  2. 2 2
      test/timertest.c

+ 4 - 3
test/private.c

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

+ 2 - 2
test/timertest.c

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