]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2428] Check quoted "$INCLUDE" is accepted too
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Wed, 12 Dec 2012 09:33:33 +0000 (10:33 +0100)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 12 Dec 2012 22:54:01 +0000 (14:54 -0800)
src/lib/dns/tests/master_loader_unittest.cc

index b8946a762d6299b15c26237d2f1f62ff19f671f9..59fd9d009335477ad80894182e86230cd61cbcf4 100644 (file)
@@ -150,10 +150,11 @@ TEST_F(MasterLoaderTest, basicLoad) {
 TEST_F(MasterLoaderTest, include) {
     // Test various cases of include
     const char* includes[] = {
-        "include",
-        "INCLUDE",
-        "Include",
-        "InCluDe",
+        "$include",
+        "$INCLUDE",
+        "$Include",
+        "$InCluDe",
+        "\"$INCLUDE\"",
         NULL
     };
     for (const char** include = includes; *include != NULL; ++include) {
@@ -162,7 +163,7 @@ TEST_F(MasterLoaderTest, include) {
         clear();
         // Prepare input source that has the include and some more data
         // below (to see it returns back to the original source).
-        const string include_str = "$" + string(*include) + " " +
+        const string include_str = string(*include) + " " +
             TEST_DATA_SRCDIR + "/example.org\nwww 3600 IN AAAA 2001:db8::1\n";
         stringstream ss(include_str);
         setLoader(ss, Name("example.org."), RRClass::IN(),