File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 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
4644LT_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 }
6165LT_END_SUITE (threaded_suite)
6266
6367LT_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
7783LT_END_AUTO_TEST (base)
7884
7985LT_BEGIN_AUTO_TEST_ENV()
8086 AUTORUN_TESTS()
8187LT_END_AUTO_TEST_ENV()
82-
83- #endif
You can’t perform that action at this time.
0 commit comments