Browse Source

[2428] Check quoted "$INCLUDE" is accepted too

Michal 'vorner' Vaner 12 years ago
parent
commit
9ece3d02af
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/lib/dns/tests/master_loader_unittest.cc

+ 6 - 5
src/lib/dns/tests/master_loader_unittest.cc

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