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 22
22
#define _WINDOWS
23
23
#endif
24
24
25
- #ifndef _WINDOWS
26
-
27
25
#include < curl/curl.h>
28
26
#include < map>
29
27
#include < string>
@@ -45,22 +43,29 @@ class ok_resource : public http_resource
45
43
46
44
LT_BEGIN_SUITE (threaded_suite)
47
45
46
+ #ifndef _WINDOWS
48
47
webserver* ws;
48
+ #endif
49
49
50
50
void set_up ()
51
51
{
52
+ #ifndef _WINDOWS
52
53
ws = new webserver (create_webserver (8080 ).start_method (http::http_utils::INTERNAL_SELECT).max_threads (5 ));
53
54
ws->start (false );
55
+ #endif
54
56
}
55
57
56
58
void tear_down ()
57
59
{
60
+ #ifndef _WINDOWS
58
61
ws->stop ();
59
62
delete ws;
63
+ #endif
60
64
}
61
65
LT_END_SUITE (threaded_suite)
62
66
63
67
LT_BEGIN_AUTO_TEST(threaded_suite, base)
68
+ #ifndef _WINDOWS
64
69
ok_resource resource;
65
70
ws->register_resource (" base" , &resource);
66
71
curl_global_init (CURL_GLOBAL_ALL);
@@ -74,10 +79,9 @@ LT_BEGIN_AUTO_TEST(threaded_suite, base)
74
79
res = curl_easy_perform(curl);
75
80
LT_ASSERT_EQ (res, 0 );
76
81
curl_easy_cleanup (curl);
82
+ #endif
77
83
LT_END_AUTO_TEST (base)
78
84
79
85
LT_BEGIN_AUTO_TEST_ENV()
80
86
AUTORUN_TESTS()
81
87
LT_END_AUTO_TEST_ENV()
82
-
83
- #endif
You can’t perform that action at this time.
0 commit comments