Browse Source

[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.
Michal 'vorner' Vaner 12 years ago
parent
commit
a09e57e212
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/lib/datasrc/tests/memory/memory_client_unittest.cc

+ 4 - 1
src/lib/datasrc/tests/memory/memory_client_unittest.cc

@@ -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,