Commit d85db585 authored by Mark Andrews's avatar Mark Andrews
Browse files

remove DNS_R_TOOMANYHOPS test

parent 514aeac2
#
# 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
#
# 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
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: t_names.c,v 1.39 2005/11/30 03:33:48 marka Exp $ */
/* $Id: t_names.c,v 1.40 2006/12/07 13:23:14 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);
}
......
#
# a global14 compression pointer
#
000a85800001000300000003
0376697803636f6d0000020001c00c00
02000100000e10000b05697372763102
7061c00cc00c0002000100000e100009
066e732d657874c00cc00c0002000100
000e10000e036e733104676e61630363
6f6d00c0250001000100000e100004cc
98b886c03c0001000100000e100004cc
98b840c051000100010002a14a0004c6
97f8f6
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment