From bb1f38e03fb01fb164a58d91bd96bc9fcf4c07df Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner Date: Thu, 13 Dec 2012 12:12:37 +0100 Subject: [PATCH] [2428] Test two more error cases Shorter and longer version of INCLUDE. --- src/lib/dns/tests/master_loader_unittest.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/dns/tests/master_loader_unittest.cc b/src/lib/dns/tests/master_loader_unittest.cc index 70375573ef..e690943766 100644 --- a/src/lib/dns/tests/master_loader_unittest.cc +++ b/src/lib/dns/tests/master_loader_unittest.cc @@ -283,6 +283,8 @@ struct ErrorCase { // Check the unknown directive. The rest looks like ordinary RR, // so we see the $ is actually special. { "$UNKNOWN 3600 IN A 192.0.2.1", "Unknown $ directive" }, + { "$INCLUD " TEST_DATA_SRCDIR "/example.org", "Include too short" }, + { "$INCLUDES " TEST_DATA_SRCDIR "/example.org", "Include too short" }, { "$INCLUDE", "Missing include path" }, { "$INCLUDE /file/not/found", "Include file not found" }, { "$INCLUDE /file/not/found and here goes bunch of garbage",