SSL async tests: tighten a few log checks in some test cases

This commit is contained in:
Gilles Peskine 2018-04-27 11:50:14 +02:00
parent 20deb01264
commit 37289cdb99

View File

@ -4237,6 +4237,7 @@ run_test "SSL async private: error in start" \
1 \ 1 \
-s "Async sign callback: injected error" \ -s "Async sign callback: injected error" \
-S "Async resume" \ -S "Async resume" \
-S "Async cancel" \
-s "! mbedtls_ssl_handshake returned" -s "! mbedtls_ssl_handshake returned"
requires_config_enabled MBEDTLS_SSL_ASYNC_PRIVATE requires_config_enabled MBEDTLS_SSL_ASYNC_PRIVATE
@ -4259,6 +4260,7 @@ run_test "SSL async private: error in resume" \
1 \ 1 \
-s "Async sign callback: using key slot " \ -s "Async sign callback: using key slot " \
-s "Async resume callback: sign done but injected error" \ -s "Async resume callback: sign done but injected error" \
-S "Async cancel" \
-s "! mbedtls_ssl_handshake returned" -s "! mbedtls_ssl_handshake returned"
requires_config_enabled MBEDTLS_SSL_ASYNC_PRIVATE requires_config_enabled MBEDTLS_SSL_ASYNC_PRIVATE
@ -4295,6 +4297,7 @@ run_test "SSL async private: cancel after start then fall back to transparent
[ \$? -eq 1 ] && [ \$? -eq 1 ] &&
$P_CLI force_ciphersuite=TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256" \ $P_CLI force_ciphersuite=TLS-ECDHE-RSA-WITH-AES-128-CBC-SHA256" \
0 \ 0 \
-s "Async sign callback: using key slot 0"
-S "Async resume" \ -S "Async resume" \
-s "Async cancel" \ -s "Async cancel" \
-s "! mbedtls_ssl_handshake returned" \ -s "! mbedtls_ssl_handshake returned" \