aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/version.rs')
-rw-r--r--openssl/src/version.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/openssl/src/version.rs b/openssl/src/version.rs
index d7db39a7..2604914e 100644
--- a/openssl/src/version.rs
+++ b/openssl/src/version.rs
@@ -92,8 +92,13 @@ fn test_versions() {
println!("Platform: '{}'", platform());
println!("Dir: '{}'", dir());
+ #[cfg(not(libressl))]
+ fn expected_name() -> &'static str { "OpenSSL" }
+ #[cfg(libressl)]
+ fn expected_name() -> &'static str { "LibreSSL" }
+
assert!(number() > 0);
- assert!(version().starts_with("OpenSSL"));
+ assert!(version().starts_with(expected_name()));
assert!(c_flags().starts_with("compiler:"));
assert!(built_on().starts_with("built on:"));
assert!(dir().starts_with("OPENSSLDIR:"));