Skip to content
Snippets Groups Projects
Commit b113aeae authored by g0dil's avatar g0dil
Browse files

Utils/Console: Fix unit test for newer boost versions

parent 671b0e5b
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment