]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a previously overstrict log message check.
authorNick Mathewson <nickm@torproject.org>
Wed, 28 Oct 2020 14:47:39 +0000 (10:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 28 Oct 2020 14:47:39 +0000 (10:47 -0400)
OpenSSL doesn't seem to report error locations in the same way as
before, which broke one of our tests.

Fixes bug 40170; bugfix on 0.2.8.1-alpha.

changes/ticket40170 [new file with mode: 0644]
src/test/test_tortls_openssl.c

diff --git a/changes/ticket40170 b/changes/ticket40170
new file mode 100644 (file)
index 0000000..cc1c8db
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (tests):
+    - Fix the "tortls/openssl/log_one_error" test to work with OpenSSL 3.0.0.
+      Fixes bug 40170; bugfix on 0.2.8.1-alpha.
index f039980a2525f3ad7b4b9ffb54d1ca565902cb6d..f4e3430daca59af5e0fdf48a870bb62567f34028 100644 (file)
@@ -283,8 +283,7 @@ test_tortls_log_one_error(void *ignored)
 
   mock_clean_saved_logs();
   tor_tls_log_one_error(tls, ERR_PACK(1, 2, 3), LOG_WARN, 0, NULL);
-  expect_log_msg("TLS error with 127.hello: "
-            "BN lib (in unknown library:(null):---)\n");
+  expect_log_msg_containing("TLS error with 127.hello");
 
   mock_clean_saved_logs();
   tor_tls_log_one_error(tls, ERR_PACK(1, 2, SSL_R_HTTP_REQUEST),