#
-# 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>
# 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
+++ /dev/null
-#
-# 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
* 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>
"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";
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);
}
+++ /dev/null
-#
-# a global14 compression pointer
-#
-000a85800001000300000003
-0376697803636f6d0000020001c00c00
-02000100000e10000b05697372763102
-7061c00cc00c0002000100000e100009
-066e732d657874c00cc00c0002000100
-000e10000e036e733104676e61630363
-6f6d00c0250001000100000e100004cc
-98b886c03c0001000100000e100004cc
-98b840c051000100010002a14a0004c6
-97f8f6