Commit 9ece3d02 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner Committed by JINMEI Tatuya
Browse files

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

parent 1649bf2b
......@@ -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(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment