Commit a09e57e2 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2209] Unrelated fix: don't c-string + int

It doesn't produce the expected result (which was obviously expected
in the code). Changed to lexical_cast, which should be enough.
parent 1eda7894
......@@ -39,6 +39,8 @@
#include <gtest/gtest.h>
#include <boost/lexical_cast.hpp>
#include <new> // for bad_alloc
using namespace isc::dns;
......@@ -289,7 +291,8 @@ TEST_F(MemoryClientTest, loadMemoryAllocationFailures) {
// Just to check that things get cleaned up
for (int i = 1; i < 16; i++) {
SCOPED_TRACE("For throw count = " + i);
SCOPED_TRACE("For throw count = " +
boost::lexical_cast<std::string>(i));
mem_sgmt_.setThrowCount(i);
EXPECT_THROW({
// Include the InMemoryClient construction too here. Now,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment