libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit bb9fdec12ee0ace4672311ad6a23dd421a6c012f
parent bf14ea781b42cb6214ea58b5ea271a87c4e5a71e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 26 Nov 2017 14:49:15 +0300

test-suite: fixed tests on Cygwin

Diffstat:
Mconfigure.ac | 3+++
Msrc/microhttpd/Makefile.am | 5+++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -346,6 +346,9 @@ gnu*) ;; esac +AM_CONDITIONAL([CYGWIN_TARGET], [[test "x$os_is_windows" = "xyes" && \ + test "x${os_is_native_w32}" != "xyes"]]) + AC_ARG_WITH([threads], [AS_HELP_STRING([--with-threads=LIB],[choose threading library (posix, w32, auto) [auto]])], [], [with_threads='auto']) diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am @@ -166,6 +166,10 @@ endif TESTS = $(check_PROGRAMS) +# Do not test trigger of select by shutdown of listen socket +# on Cygwin as this ability is deliberately ignored on Cygwin +# to improve compatibility with core OS. +if !CYGWIN_TARGET if HAVE_LISTEN_SHUTDOWN check_PROGRAMS += \ test_shutdown_select \ @@ -175,6 +179,7 @@ check_PROGRAMS += \ test_shutdown_select_ignore \ test_shutdown_poll_ignore endif +endif test_start_stop_SOURCES = \ test_start_stop.c