From: Michal 'vorner' Vaner Date: Thu, 13 Dec 2012 11:12:37 +0000 (+0100) Subject: [2428] Test two more error cases X-Git-Tag: bind10-1.0.0-beta-release~24^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb1f38e03fb01fb164a58d91bd96bc9fcf4c07df;p=thirdparty%2Fkea.git [2428] Test two more error cases Shorter and longer version of INCLUDE. --- 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",