Skip to content

Commit b105f6e

Browse files
committed
Added tests for issue 13.
1 parent 8a9fbed commit b105f6e

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright (c) Glyn Matthews 2010.
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
5+
6+
7+
8+
# define BOOST_TEST_MODULE Client and server includes
9+
# include <boost/test/unit_test.hpp>
10+
11+
12+
//
13+
// The problem here is a bizarre compilation failure in including
14+
// these two files, and instantiating a client. It's described at
15+
// http://github.com/cpp-netlib/cpp-netlib/issues#issue/13
16+
//
17+
# include <boost/network/protocol/http/client.hpp>
18+
# include <boost/network/protocol/http/server.hpp>
19+
20+
21+
BOOST_AUTO_TEST_CASE(test1) {
22+
typedef boost::network::http::basic_client<
23+
boost::network::tags::http_keepalive_8bit_udp_resolve, 1, 1> http_client;
24+
http_client client;
25+
}

libs/network/test/test_issue_13.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Glyn Matthews 2010.
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
5+
6+
7+
8+
# define BOOST_TEST_MODULE Client and server includes
9+
# include <boost/test/unit_test.hpp>
10+
# include <boost/network/protocol/client.hpp>
11+
# include <boost/network/protocol/server.hpp>
12+
13+
14+
BOOST_AUTO_TEST_CASE(test1) {
15+
typedef boost::network::http::basic_client<
16+
boost::network::tags::http_keepalive_8bit_udp_resolve, 1, 1> http_client;
17+
http_client client;
18+
}

0 commit comments

Comments
 (0)