]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove DNS_R_TOOMANYHOPS test
authorMark Andrews <marka@isc.org>
Thu, 7 Dec 2006 13:23:46 +0000 (13:23 +0000)
committerMark Andrews <marka@isc.org>
Thu, 7 Dec 2006 13:23:46 +0000 (13:23 +0000)
bin/tests/names/dns_name_fromwire_8_data
bin/tests/names/dns_name_fromwire_9_data [deleted file]
bin/tests/names/t_names.c
bin/tests/names/wire_test9.data [deleted file]

index 744da071c0193c9ddd6df9e18dc9bef5ff465b14..9ddd3f3da06d0424776096897d636def54c2aa56 100644 (file)
@@ -1,5 +1,5 @@
 #
-# test data for dns_name_fromwire_8
+# test data for dns_name_fromwire_9
 # format:
 #      <msgfile> <testname_offset> <downcase>
 #      <dc_method> <exp_name> <exp_result>
@@ -27,4 +27,4 @@
 #              ISC_R_UNEXPECTEDEND
 #              DNS_R_TOOMANYHOPS
 #
-wire_test8.data        383     1       DNS_COMPRESS_ALL        vix.com.        DNS_R_TOOMANYHOPS
+wire_test8.data        25      1       DNS_COMPRESS_ALL        vix.com.        ISC_R_NOSPACE
diff --git a/bin/tests/names/dns_name_fromwire_9_data b/bin/tests/names/dns_name_fromwire_9_data
deleted file mode 100644 (file)
index 47c8a06..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# test data for dns_name_fromwire_9
-# format:
-#      <msgfile> <testname_offset> <downcase>
-#      <dc_method> <exp_name> <exp_result>
-#
-# where msgfile contains a DNS message in hex form
-#
-# and where testname_offset is the byte offset in this message of
-# the start of a name
-#
-# and where downcase is 1 or 0
-#
-# and where dc_method is one of
-#      DNS_COMPRESS_ALL
-#      DNS_COMPRESS_GLOBAL14
-#      DNS_COMPRESS_NONE
-#
-# and where exp_name is the expected name after any decompression
-# or case conversion
-#
-# and where exp_result may be one of
-#              ISC_R_NOSPACE
-#              DNS_R_BADLABELTYPE
-#              DNS_R_DISALLOWED
-#              DNS_R_BADPOINTER
-#              ISC_R_UNEXPECTEDEND
-#              DNS_R_TOOMANYHOPS
-#
-wire_test9.data        25      1       DNS_COMPRESS_ALL        vix.com.        ISC_R_NOSPACE
index 54a8d25178ca2c41f362fee02f12992a8a1ed506..f69cb9dd2cba53749e507d7d6b2b86631481190e 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: t_names.c,v 1.36.18.3 2005/11/30 03:44:38 marka Exp $ */
+/* $Id: t_names.c,v 1.36.18.4 2006/12/07 13:21:11 marka Exp $ */
 
 #include <config.h>
 
@@ -1961,10 +1961,6 @@ static const char *a48 =
                "returns ISC_R_UNEXPECTEDEND";
 
 static const char *a49 =
-               "when there are too many compression pointers, "
-               "dns_name_fromwire() returns DNS_R_TOOMANYHOPS";
-
-static const char *a50 =
                "when there is not enough space in target, "
                "dns_name_fromwire(name, source, dcts, downcase, target) "
                "returns ISC_R_NOSPACE";
@@ -2147,11 +2143,8 @@ t_dns_name_fromwire(void) {
        t_assert("dns_name_fromwire", 7, T_REQUIRED, a48);
        t_dns_name_fromwire_x("dns_name_fromwire_7_data", BUFLEN);
 
-       t_assert("dns_name_fromwire", 8, T_REQUIRED, a49);
-       t_dns_name_fromwire_x("dns_name_fromwire_8_data", BUFLEN);
-
-       t_assert("dns_name_fromwire", 9, T_REQUIRED, a50);
-       t_dns_name_fromwire_x("dns_name_fromwire_9_data", 2);
+       t_assert("dns_name_fromwire", 9, T_REQUIRED, a49);
+       t_dns_name_fromwire_x("dns_name_fromwire_8_data", 2);
 }
 
 
diff --git a/bin/tests/names/wire_test9.data b/bin/tests/names/wire_test9.data
deleted file mode 100644 (file)
index 505134a..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-# a global14 compression pointer
-#
-000a85800001000300000003
-0376697803636f6d0000020001c00c00
-02000100000e10000b05697372763102
-7061c00cc00c0002000100000e100009
-066e732d657874c00cc00c0002000100
-000e10000e036e733104676e61630363
-6f6d00c0250001000100000e100004cc
-98b886c03c0001000100000e100004cc
-98b840c051000100010002a14a0004c6
-97f8f6