Skip to content

Commit ede3886

Browse files
committed
tcl_tests: ca.try: Ignore openssl crl exit status for 'corrupted CRL' test
Older `openssl crl` exits with 0 in regard to verify no matter actual verify status, newer `openssl crl` could exit with 1 on verify failure. Make the test backward-compatible comparing only an output. Fixes: #452 Signed-off-by: Vitaly Chikunov <[email protected]>
1 parent 27245fd commit ede3886

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tcl_tests/ca.try

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ test -skip {![file exists test.crl]} "Verifying CRL OK" {
8888
test -skip {![file exists test.crl]} "Verifying corrupted CRL" {
8989
makeFile "badcrl.pem" [hackPem "\01\x1E" [getFile test.crl] "\01\0"]
9090
grep verify [openssl "crl -in badcrl.pem -noout -CAfile $::test::ca/cacert.pem"]
91-
} 0 "verify failure
92-
"
91+
} -1 "verify failure"
9392

9493
test "Verifying CA certificate" {
9594
grep "(cacert.pem|error|OK)" [openssl "verify -CAfile $::test::ca/cacert.pem $::test::ca/cacert.pem"]

0 commit comments

Comments
 (0)