From: Michal 'vorner' Vaner Date: Wed, 12 Dec 2012 09:33:33 +0000 (+0100) Subject: [2428] Check quoted "$INCLUDE" is accepted too X-Git-Tag: bind10-1.0.0-beta-release~16^2~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ece3d02afe58dcc487e0ca0a4c464f1ba53eca7;p=thirdparty%2Fkea.git [2428] Check quoted "$INCLUDE" is accepted too --- diff --git a/src/lib/dns/tests/master_loader_unittest.cc b/src/lib/dns/tests/master_loader_unittest.cc index b8946a762d..59fd9d0093 100644 --- a/src/lib/dns/tests/master_loader_unittest.cc +++ b/src/lib/dns/tests/master_loader_unittest.cc @@ -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(),