Skip to content

Commit d959a6c

Browse files
committed
Disable custom fd test on darwin
1 parent 22922c5 commit d959a6c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,8 @@ if test x"$coverit" = x"yes"; then
270270
case $host_os in
271271
darwin* )
272272
echo "Coverage not supported on OSX"
273+
AM_CXXFLAGS="$AM_CXXFLAGS -DDARWIN"
274+
AM_CFLAGS="$AM_CFLAGS -DDARWIN"
273275
cond_gcov="no"
274276
;;
275277
*)

test/integ/ws_start_stop.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ LT_BEGIN_AUTO_TEST(ws_start_stop_suite, enable_options)
241241
LT_END_AUTO_TEST(enable_options)
242242

243243
LT_BEGIN_AUTO_TEST(ws_start_stop_suite, custom_socket)
244+
#ifndef DARWIN
244245
int fd = socket(AF_INET, SOCK_STREAM, 0);
245246

246247
struct sockaddr_in address;
@@ -269,6 +270,7 @@ LT_BEGIN_AUTO_TEST(ws_start_stop_suite, custom_socket)
269270
curl_easy_cleanup(curl);
270271

271272
ws.stop();
273+
#endif
272274
LT_END_AUTO_TEST(custom_socket)
273275

274276
LT_BEGIN_AUTO_TEST(ws_start_stop_suite, single_resource)

0 commit comments

Comments
 (0)