From f51760a152c68a43c4fc2762468eb390e30f7255 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 26 Sep 2000 16:39:45 +0000 Subject: [PATCH] * krb5_decode_test.c (decode_run): If the ASN1 decoder returns an error, add one to the error count so there will be a non-zero exit. Sometimes, the decoded structure is complete enoght to pass the test, even with an ASN.1 error - which can easilly get missed in the output run. The indefinite lengths encryption key test (w/ trailing [2] integer) fails under linux and SGI - but works on other platforms - probably due to luck stack problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12677 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/asn.1/ChangeLog | 8 ++++++++ src/tests/asn.1/krb5_decode_test.c | 1 + 2 files changed, 9 insertions(+) diff --git a/src/tests/asn.1/ChangeLog b/src/tests/asn.1/ChangeLog index 773426d5f..be4f33196 100644 --- a/src/tests/asn.1/ChangeLog +++ b/src/tests/asn.1/ChangeLog @@ -1,3 +1,11 @@ +2000-09-26 Ezra Peisach + + * krb5_decode_test.c (decode_run): If the ASN1 decoder returns an + error, add one to the error count so there will be a non-zero + exit. Sometimes, the decoded structure is complete enoght to pass + the test, even with an ASN.1 error - which can easilly get missed + in the output run. + 2000-08-07 Ezra Peisach * reference_encode.out, trval_reference.out: Test encoding of diff --git a/src/tests/asn.1/krb5_decode_test.c b/src/tests/asn.1/krb5_decode_test.c index 4a343c57e..1ba317e7c 100644 --- a/src/tests/asn.1/krb5_decode_test.c +++ b/src/tests/asn.1/krb5_decode_test.c @@ -40,6 +40,7 @@ int main(argc, argv) retval = decoder(&code,&var);\ if(retval){\ com_err("krb5_decode_test", retval, "while decoding %s", typestring);\ + error_count++;\ }\ assert(comparator(&ref,var),typestring);\ printf("%s\n",description) -- 2.26.2