From: Mukund Sivaraman Date: Mon, 17 Dec 2012 05:28:39 +0000 (+0530) Subject: [2431] Check exception message in tests X-Git-Tag: bind10-1.0.0-beta-release~13^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7400eee5cb287236717e78c8956cc09efb424813;p=thirdparty%2Fkea.git [2431] Check exception message in tests --- diff --git a/src/lib/dns/tests/master_loader_unittest.cc b/src/lib/dns/tests/master_loader_unittest.cc index a449a97184..544dae53bf 100644 --- a/src/lib/dns/tests/master_loader_unittest.cc +++ b/src/lib/dns/tests/master_loader_unittest.cc @@ -280,14 +280,18 @@ struct ErrorCase { { "www FORTNIGHT IN A 192.0.2.1", NULL, "Invalid TTL" }, { "www 3600 XX A 192.0.2.1", NULL, "Invalid class" }, { "www 3600 IN A bad_ip", NULL, "Invalid Rdata" }, - { "www IN A 3600 192.168.2.7", NULL, - "Invalid Rdata (incorrect order of class, TTL and type)" }, - { "www A IN 3600 192.168.2.8", NULL, - "Invalid Rdata (incorrect order of class, TTL and type)" }, - { "www 3600 A IN 192.168.2.7", NULL, - "Invalid Rdata (incorrect order of class, TTL and type)" }, - { "www A 3600 IN 192.168.2.8", NULL, - "Invalid Rdata (incorrect order of class, TTL and type)" }, + { "www IN A 3600 192.168.2.7", + "createRdata from text failed: IN/A RDATA construction from text failed", + "Incorrect order of class, TTL and type" }, + { "www A IN 3600 192.168.2.8", + "createRdata from text failed: IN/A RDATA construction from text failed", + "Incorrect order of class, TTL and type" }, + { "www 3600 A IN 192.168.2.7", + "createRdata from text failed: IN/A RDATA construction from text failed", + "Incorrect order of class, TTL and type" }, + { "www A 3600 IN 192.168.2.8", + "createRdata from text failed: IN/A RDATA construction from text failed", + "Incorrect order of class, TTL and type" }, { "www 3600 IN", NULL, "Unexpected EOLN" }, { "www 3600 CH TXT nothing", NULL, "Class mismatch" }, { "www \"3600\" IN A 192.0.2.1", NULL, "Quoted TTL" },