Unverified Commit d96e294b authored by Dan Čermák's avatar Dan Čermák
Browse files

Only check OPENSSL_BUILT_ON if it is not empty

Some distributions (e.g. openSUSE) patch out OPENSSL_BUILT_ON to be empty as
this breaks reproducibility of the build.
With this commit, we only check that this value starts with "built on" if it is
not empty, thereby not loosing any test coverage.
parent e0998470
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -127,6 +127,9 @@ fn test_versions() {
    assert!(number() > 0);
    assert!(version().starts_with(expected_name()));
    assert!(c_flags().starts_with("compiler:"));
    // 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:"));
}