remove DNS_R_TOOMANYHOPS test

This commit is contained in:
Mark Andrews
2006-12-07 13:25:58 +00:00
parent c08f16ae8b
commit a4bf005bfa
4 changed files with 5 additions and 55 deletions
+2 -2
View 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
-30
View File
@@ -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
+3 -10
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: t_names.c,v 1.32.2.5 2006/01/04 23:50:17 marka Exp $ */
/* $Id: t_names.c,v 1.32.2.6 2006/12/07 13:25:58 marka Exp $ */
#include <config.h>
@@ -2139,10 +2139,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";
@@ -2327,11 +2323,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);
}
-13
View File
@@ -1,13 +0,0 @@
#
# a global14 compression pointer
#
000a85800001000300000003
0376697803636f6d0000020001c00c00
02000100000e10000b05697372763102
7061c00cc00c0002000100000e100009
066e732d657874c00cc00c0002000100
000e10000e036e733104676e61630363
6f6d00c0250001000100000e100004cc
98b886c03c0001000100000e100004cc
98b840c051000100010002a14a0004c6
97f8f6