Skip to content

Commit 52ce538

Browse files
authored
Disable threading tests on windows
1 parent 2e2d328 commit 52ce538

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/integ/threaded.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#define _WINDOWS
2323
#endif
2424

25-
#ifndef _WINDOWS
26-
2725
#include <curl/curl.h>
2826
#include <map>
2927
#include <string>
@@ -45,22 +43,29 @@ class ok_resource : public http_resource
4543

4644
LT_BEGIN_SUITE(threaded_suite)
4745

46+
#ifndef _WINDOWS
4847
webserver* ws;
48+
#endif
4949

5050
void set_up()
5151
{
52+
#ifndef _WINDOWS
5253
ws = new webserver(create_webserver(8080).start_method(http::http_utils::INTERNAL_SELECT).max_threads(5));
5354
ws->start(false);
55+
#endif
5456
}
5557

5658
void tear_down()
5759
{
60+
#ifndef _WINDOWS
5861
ws->stop();
5962
delete ws;
63+
#endif
6064
}
6165
LT_END_SUITE(threaded_suite)
6266

6367
LT_BEGIN_AUTO_TEST(threaded_suite, base)
68+
#ifndef _WINDOWS
6469
ok_resource resource;
6570
ws->register_resource("base", &resource);
6671
curl_global_init(CURL_GLOBAL_ALL);
@@ -74,10 +79,9 @@ LT_BEGIN_AUTO_TEST(threaded_suite, base)
7479
res = curl_easy_perform(curl);
7580
LT_ASSERT_EQ(res, 0);
7681
curl_easy_cleanup(curl);
82+
#endif
7783
LT_END_AUTO_TEST(base)
7884

7985
LT_BEGIN_AUTO_TEST_ENV()
8086
AUTORUN_TESTS()
8187
LT_END_AUTO_TEST_ENV()
82-
83-
#endif

0 commit comments

Comments
 (0)