summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-09-26 16:39:45 +0000
committerEzra Peisach <epeisach@mit.edu>2000-09-26 16:39:45 +0000
commitf51760a152c68a43c4fc2762468eb390e30f7255 (patch)
tree871c8dc48a36bea15cd03518812e63d9e2f2e6fe /src/tests
parent02ba921eec255752f9a130fa2b98983a6d00d37a (diff)
* 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
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/asn.1/ChangeLog8
-rw-r--r--src/tests/asn.1/krb5_decode_test.c1
2 files changed, 9 insertions, 0 deletions
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 <epeisach@mit.edu>
+
+ * 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 <epeisach@mit.edu>
* 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)