diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-26 14:49:15 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-26 14:49:15 +0300 |
commit | bb9fdec12ee0ace4672311ad6a23dd421a6c012f (patch) | |
tree | a05421ca9324d1191c10ce13b468fd5776b2ee13 | |
parent | bf14ea781b42cb6214ea58b5ea271a87c4e5a71e (diff) | |
download | libmicrohttpd-bb9fdec12ee0ace4672311ad6a23dd421a6c012f.tar.gz libmicrohttpd-bb9fdec12ee0ace4672311ad6a23dd421a6c012f.zip |
test-suite: fixed tests on Cygwin
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/microhttpd/Makefile.am | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 47ffbd38..9174fa4a 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -346,6 +346,9 @@ gnu*) | |||
346 | ;; | 346 | ;; |
347 | esac | 347 | esac |
348 | 348 | ||
349 | AM_CONDITIONAL([CYGWIN_TARGET], [[test "x$os_is_windows" = "xyes" && \ | ||
350 | test "x${os_is_native_w32}" != "xyes"]]) | ||
351 | |||
349 | AC_ARG_WITH([threads], | 352 | AC_ARG_WITH([threads], |
350 | [AS_HELP_STRING([--with-threads=LIB],[choose threading library (posix, w32, auto) [auto]])], | 353 | [AS_HELP_STRING([--with-threads=LIB],[choose threading library (posix, w32, auto) [auto]])], |
351 | [], [with_threads='auto']) | 354 | [], [with_threads='auto']) |
diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index 0f2672de..d89f3c19 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am | |||
@@ -166,6 +166,10 @@ endif | |||
166 | 166 | ||
167 | TESTS = $(check_PROGRAMS) | 167 | TESTS = $(check_PROGRAMS) |
168 | 168 | ||
169 | # Do not test trigger of select by shutdown of listen socket | ||
170 | # on Cygwin as this ability is deliberately ignored on Cygwin | ||
171 | # to improve compatibility with core OS. | ||
172 | if !CYGWIN_TARGET | ||
169 | if HAVE_LISTEN_SHUTDOWN | 173 | if HAVE_LISTEN_SHUTDOWN |
170 | check_PROGRAMS += \ | 174 | check_PROGRAMS += \ |
171 | test_shutdown_select \ | 175 | test_shutdown_select \ |
@@ -175,6 +179,7 @@ check_PROGRAMS += \ | |||
175 | test_shutdown_select_ignore \ | 179 | test_shutdown_select_ignore \ |
176 | test_shutdown_poll_ignore | 180 | test_shutdown_poll_ignore |
177 | endif | 181 | endif |
182 | endif | ||
178 | 183 | ||
179 | test_start_stop_SOURCES = \ | 184 | test_start_stop_SOURCES = \ |
180 | test_start_stop.c | 185 | test_start_stop.c |