From febcab0e0afed3cbedfb3d481e3473835150167d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 8 Oct 2015 13:14:14 -0700 Subject: [PATCH] Don't test SSL errors on OSX Due to libgit2 perhaps using different frameworks it's a little too onerous to test there. It's also pretty unlikely that libgit2 is configure to *not* have SSL on OSX by mistake. --- tests/test_cargo_build_auth.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_cargo_build_auth.rs b/tests/test_cargo_build_auth.rs index 9dcf1293c..e7afb7765 100644 --- a/tests/test_cargo_build_auth.rs +++ b/tests/test_cargo_build_auth.rs @@ -156,7 +156,10 @@ Caused by: errmsg = if cfg!(windows) { "[[..]] failed to send request: [..]\n" } else if cfg!(target_os = "macos") { - "[[..]] unexpected return value from ssl handshake [..]" + // OSX is difficult to tests as some builds may use + // Security.framework and others may use OpenSSL. In that case let's + // just not verify the error message here. + "[..]" } else { "[[..]] SSL error: [..]" })));