2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

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

This commit is contained in:
Michal 'vorner' Vaner
2012-12-12 10:33:33 +01:00
parent 320f960c72
commit 041637fac5

View 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(),