From: Michal 'vorner' Vaner Date: Thu, 3 May 2012 10:37:28 +0000 (+0200) Subject: [1892] Return the placeholders to tests too X-Git-Tag: trac2351_base~226^2~90^2~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fb18596288d2eae586cd01da0b27f329fb4e155;p=thirdparty%2Fkea.git [1892] Return the placeholders to tests too The test code now reflects the code change. --- diff --git a/src/lib/log/tests/log_formatter_unittest.cc b/src/lib/log/tests/log_formatter_unittest.cc index d941849e81..3fb768907c 100644 --- a/src/lib/log/tests/log_formatter_unittest.cc +++ b/src/lib/log/tests/log_formatter_unittest.cc @@ -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"));