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.
This commit is contained in:
Alex Crichton 2015-10-08 13:14:14 -07:00
parent 20a0e30ec5
commit febcab0e0a

View file

@ -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: [..]"
})));