Ver código fonte

testzzuf: test thoroughly if heavy tests are enabled

Evgeny Grin (Karlson2k) 4 anos atrás
pai
commit
9826b05efe
2 arquivos alterados com 8 adições e 0 exclusões
  1. 4 0
      src/testzzuf/Makefile.am
  2. 4 0
      src/testzzuf/socat.c

+ 4 - 0
src/testzzuf/Makefile.am

@@ -8,6 +8,10 @@ endif
 
 AM_CPPFLAGS = -I$(top_srcdir)/src/include \
   $(LIBCURL_CPPFLAGS)
+  
+if HEAVY_TESTS
+AM_CPPFLAGS += -D_MHD_HEAVY_TESTS=1
+endif  
 
 EXTRA_DIST = README socat.c
 

+ 4 - 0
src/testzzuf/socat.c

@@ -43,7 +43,11 @@
  * long for most user's patience.  So this small
  * value is the default.
  */
+#ifndef _MHD_HEAVY_TESTS
 #define LOOP_COUNT 10
+#else  /* ! _MHD_HEAVY_TESTS */
+#define LOOP_COUNT 200
+#endif /* ! _MHD_HEAVY_TESTS */
 
 #define CURL_TIMEOUT 50L