]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2428] Test two more error cases
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 13 Dec 2012 11:12:37 +0000 (12:12 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 13 Dec 2012 11:12:37 +0000 (12:12 +0100)
Shorter and longer version of INCLUDE.

src/lib/dns/tests/master_loader_unittest.cc

index 70375573ef5b991e0af7404086221f59d27216b3..e690943766dc95b00175ab33ea2e71fe55215fbd 100644 (file)
@@ -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",