]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2260] Fixed #2598 negative UT master
authorFrancis Dupont <fdupont@isc.org>
Wed, 15 Jul 2026 13:39:07 +0000 (15:39 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 15 Jul 2026 13:39:07 +0000 (15:39 +0200)
src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc

index ca285ec2b77a128d8ee94df412da2a00eb7783c7..aeced53c0cc67a66e5c4a99d6a6e5bc611d95f59 100644 (file)
@@ -624,10 +624,7 @@ TEST_F(ClientClassDefParserTest, escapedName2) {
     EXPECT_EQ("foo%bar", cclass->getName());
 
     // A warning should not be in logs.
-    std::string warn = "DHCPSRV_CLASS_BAD_NAME class name 'foo%bar' ";
-    warn += "includes problematic characters: ";
-    warn += "suggest to use 'foo%%bar' instead";
-    EXPECT_EQ(0U, countFile(warn));
+    EXPECT_EQ(0U, countFile("DHCPSRV_CLASS_BAD_NAME"));
 }
 
 // Verifies you can create a class with a name, expression,