From: g0dil Date: Tue, 18 Aug 2009 05:35:25 +0000 (+0000) Subject: Utils/Console: Fix unit test for newer boost versions X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=cc9c62f5d9ddfe94837fab0c06de115a37d1ac86;p=senf.git Utils/Console: Fix unit test for newer boost versions git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1297 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Utils/Console/UDPServer.cc b/Utils/Console/UDPServer.cc index 8a0c33b..73834be 100644 --- a/Utils/Console/UDPServer.cc +++ b/Utils/Console/UDPServer.cc @@ -114,7 +114,7 @@ prefix_ void senf::console::UDPServer::handleInput(int events) senf::GenericBSDSocketAddress address; handle_.readfrom(data, address, 0u); boost::trim(data); - + executor_.cwd(executor_.chroot()); std::stringstream stream; try { diff --git a/Utils/Console/UDPServer.test.cc b/Utils/Console/UDPServer.test.cc index 8617926..e35f4d0 100644 --- a/Utils/Console/UDPServer.test.cc +++ b/Utils/Console/UDPServer.test.cc @@ -71,7 +71,7 @@ BOOST_AUTO_UNIT_TEST(udpServer) nread = 0; flags = 0; data = ""; - socket.write("ll"); + socket.write(std::string("ll")); timer.timeout(delay(300)); senf::scheduler::process(); BOOST_CHECK_EQUAL( nread, 1 ); @@ -82,7 +82,7 @@ BOOST_AUTO_UNIT_TEST(udpServer) nread = 0; flags = 0; data = ""; - socket.write("sys"); + socket.write(std::string("sys")); timer.timeout(delay(300)); senf::scheduler::process(); BOOST_CHECK_EQUAL( nread, 1 ); @@ -93,7 +93,7 @@ BOOST_AUTO_UNIT_TEST(udpServer) nread = 0; flags = 0; data = ""; - socket.write("cd sys"); + socket.write(std::string("cd sys")); timer.timeout(delay(300)); senf::scheduler::process(); BOOST_CHECK_EQUAL( nread, 1 ); @@ -104,7 +104,7 @@ BOOST_AUTO_UNIT_TEST(udpServer) nread = 0; flags = 0; data = ""; - socket.write("ll"); + socket.write(std::string("ll")); timer.timeout(delay(300)); senf::scheduler::process(); BOOST_CHECK_EQUAL( nread, 1 );