]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1892] Return the placeholders to tests too
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 3 May 2012 10:37:28 +0000 (12:37 +0200)
committerMukund Sivaraman <muks@isc.org>
Fri, 4 May 2012 04:03:13 +0000 (09:33 +0530)
The test code now reflects the code change.

src/lib/log/tests/log_formatter_unittest.cc

index d941849e814fb5d859f9b9bef9a7c8c6c461cfa3..3fb768907c4a1bfc16dca5794634625079fc1e74 100644 (file)
@@ -119,7 +119,8 @@ TEST_F(FormatterTest, mismatchedPlaceholders) {
                     arg("missing").arg("argument"));
     ASSERT_EQ(1, outputs.size());
     EXPECT_EQ(isc::log::INFO, outputs[0].first);
-    EXPECT_EQ("Missing the first argument", outputs[0].second);
+    EXPECT_EQ("Missing the first argument "
+              "@@Missing placeholder %1 for 'missing'@@", outputs[0].second);
 
     EXPECT_NO_THROW(Formatter(isc::log::INFO, s("Too many arguments in %1 %2"), this).
                     arg("only one"));