Просмотр исходного кода

test_start_stop: moved to src/microhttpd, removed inclusion of libcurl header

Evgeny Grin (Karlson2k) 8 лет назад
Родитель
Сommit
cfddbb9dc7
3 измененных файлов с 7 добавлено и 8 удалено
  1. 6 0
      src/microhttpd/Makefile.am
  2. 1 2
      src/microhttpd/test_start_stop.c
  3. 0 6
      src/testcurl/Makefile.am

+ 6 - 0
src/microhttpd/Makefile.am

@@ -144,6 +144,7 @@ check_PROGRAMS = \
   test_str_to_value \
   test_str_token \
   test_http_reasons \
+  test_start_stop \
   test_daemon \
   test_options
 
@@ -175,6 +176,11 @@ check_PROGRAMS += \
   test_shutdown_poll_ignore
 endif
 
+test_start_stop_SOURCES = \
+  test_start_stop.c
+test_start_stop_LDADD = \
+  $(top_builddir)/src/microhttpd/libmicrohttpd.la
+
 test_daemon_SOURCES = \
   test_daemon.c
 test_daemon_LDADD = \

+ 1 - 2
src/testcurl/test_start_stop.c → src/microhttpd/test_start_stop.c

@@ -23,9 +23,8 @@
  * @brief  test for #1901 (start+stop)
  * @author Christian Grothoff
  */
-#include "MHD_config.h"
+#include "mhd_options.h"
 #include "platform.h"
-#include <curl/curl.h>
 #include <microhttpd.h>
 
 #if defined(CPU_COUNT) && (CPU_COUNT+0) < 2

+ 0 - 6
src/testcurl/Makefile.am

@@ -18,7 +18,6 @@ $(LIBCURL_CPPFLAGS)
 
 if HAVE_CURL
 check_PROGRAMS = \
-  test_start_stop \
   test_get \
   test_get_sendfile \
   test_urlparse \
@@ -83,11 +82,6 @@ endif
 libcurl_version_check_a_SOURCES = \
   curl_version_check.c
 
-test_start_stop_SOURCES = \
-  test_start_stop.c
-test_start_stop_LDADD = \
-  $(top_builddir)/src/microhttpd/libmicrohttpd.la
-
 test_concurrent_stop_SOURCES = \
   test_concurrent_stop.c
 test_concurrent_stop_CFLAGS = \