File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,8 @@ if (Boost_FOUND)
3939 ${CPP-NETLIB_BINARY_DIR }/tests/cpp-netlib-${test} )
4040 endforeach (test )
4141
42+ # Also copy the server directory to the root of the build directory.
43+ file (COPY server DESTINATION ${CPP-NETLIB_BINARY_DIR }/libs/network/test /)
44+
4245endif ()
4346
Original file line number Diff line number Diff line change 55// http://www.boost.org/LICENSE_1_0.txt)
66
77#define BOOST_TEST_MODULE HTTP Client Get Timeout Test
8+ #include < cstdlib>
89#include < boost/network/include/http/client.hpp>
910#include < boost/test/unit_test.hpp>
1011#include " client_types.hpp"
1112#include " http_test_server.hpp"
1213
1314struct localhost_server_fixture {
1415 localhost_server_fixture () {
15- if (!server.start ())
16+ if (!server.start ()) {
1617 std::cout << " Failed to start HTTP server for test!" << std::endl;
18+ std::abort ();
19+ }
1720 }
1821
1922 ~localhost_server_fixture () {
20- if (!server.stop ())
23+ if (!server.stop ()) {
2124 std::cout << " Failed to stop HTTP server for test!" << std::endl;
25+ std::abort ();
26+ }
2227 }
2328
2429 http_test_server server;
You can’t perform that action at this time.
0 commit comments