summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-23 16:08:18 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-23 16:08:18 +0100
commita6e3a0589cd19ff11e3cdb5543b4a70b20d385ae (patch)
tree958cc2298174a220fc00e0147705316ab4409a9e
parentabffa79d5fee94b2123c9ea8516b7e9a052f1a97 (diff)
Hack around destruction problems in test.
-rw-r--r--test/test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.cc b/test/test.cc
index 06954822d..45d681be0 100644
--- a/test/test.cc
+++ b/test/test.cc
@@ -287,9 +287,9 @@ BOOST_AUTO_TEST_CASE (client_server_test)
shared_ptr<EncodedData> locally_encoded = frame.encode_locally ();
Config::instance()->set_server_port (61920);
- Server server (&log);
+ Server* server = new Server (&log);
- thread t (boost::bind (&Server::run, &server, 1));
+ thread t (boost::bind (&Server::run, server, 1));
ServerDescription description ("localhost", 1);
shared_ptr<EncodedData> remotely_encoded = frame.encode_remotely (&description);