Skip to content

Commit

Permalink
Merge pull request #1545 from dcermak/master
Browse files Browse the repository at this point in the history
Only check OPENSSL_BUILT_ON if it is not ""
  • Loading branch information
sfackler authored Oct 27, 2021
2 parents e099847 + d96e294 commit eeaf445
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openssl/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ fn test_versions() {
assert!(number() > 0);
assert!(version().starts_with(expected_name()));
assert!(c_flags().starts_with("compiler:"));
assert!(built_on().starts_with("built on:"));
// some distributions patch out dates out of openssl so that the builds are reproducible
if !built_on().is_empty() {
assert!(built_on().starts_with("built on:"));
}
assert!(dir().starts_with("OPENSSLDIR:"));
}

0 comments on commit eeaf445

Please sign in to comment.