Fix dns_name_fromwire test

This commit is contained in:
Michael Sawyer
2000-06-09 18:44:30 +00:00
parent 99bec2168f
commit 7236d89919
2 changed files with 5 additions and 3 deletions

View File

@@ -29,4 +29,4 @@
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test4.data 550 1 DNS_COMPRESS_ALL vix.com. ISC_R_NOSPACE
wire_test4.data 550 1 DNS_COMPRESS_ALL vix.com. DNS_R_FORMERR

View File

@@ -2083,7 +2083,7 @@ static const char *a42 =
*/
static const char *a43 =
"when a label length is invalid, dns_name_fromwire() "
"returns ISC_R_NOSPACE";
"returns DNS_R_FORMERR";
static const char *a44 =
"when a label type is invalid, dns_name_fromwire() "
@@ -2092,7 +2092,7 @@ static const char *a44 =
static const char *a45 =
"when a name length is invalid, dns_name_fromwire() "
"returns ISC_R_NOSPACE";
"returns DNS_R_FORMERR";
static const char *a46 =
"when a compression type is invalid, dns_name_fromwire() "
@@ -2223,6 +2223,8 @@ t_dns_name_fromwire_x(const char *testfile, size_t buflen) {
exp_result = ISC_R_NOSPACE;
else if (! strcmp(tok, "DNS_R_BADLABELTYPE"))
exp_result = DNS_R_BADLABELTYPE;
else if (! strcmp(tok, "DNS_R_FORMERR"))
exp_result = DNS_R_FORMERR;
else if (! strcmp(tok, "DNS_R_BADPOINTER"))
exp_result = DNS_R_BADPOINTER;
else if (! strcmp(tok, "ISC_R_UNEXPECTEDEND"))