From 11d50f94d8742010520ecfc315534e9a39f71375 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Thu, 10 Mar 2016 15:55:45 -0500 Subject: [PATCH] Include colons in expectedError matches. If we're doing substring matching, we should at least include the delimiter. Change-Id: I98bee568140d0304bbb6a2788333dbfca044114c Reviewed-on: https://boringssl-review.googlesource.com/7420 Reviewed-by: Steven Valdez Reviewed-by: David Benjamin --- ssl/test/runner/runner.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssl/test/runner/runner.go b/ssl/test/runner/runner.go index 52729e34..f85175a1 100644 --- a/ssl/test/runner/runner.go +++ b/ssl/test/runner/runner.go @@ -2516,7 +2516,7 @@ func addBadECDSASignatureTests() { }, }, shouldFail: true, - expectedError: "SIGNATURE", + expectedError: ":BAD_SIGNATURE:", }) } } @@ -2542,7 +2542,7 @@ func addCBCPaddingTests() { }, }, shouldFail: true, - expectedError: "DECRYPTION_FAILED_OR_BAD_RECORD_MAC", + expectedError: ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:", }) // OpenSSL previously had an issue where the first byte of padding in // 255 bytes of padding wasn't checked. @@ -2557,7 +2557,7 @@ func addCBCPaddingTests() { }, messageLen: 12, // 20 bytes of SHA-1 + 12 == 0 % block size shouldFail: true, - expectedError: "DECRYPTION_FAILED_OR_BAD_RECORD_MAC", + expectedError: ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:", }) }