diff options
author | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2017-01-29 10:52:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-30 14:25:44 (GMT) |
commit | 5181f1f86a4d4c2ac09a540285c938fe2c2fa262 (patch) | |
tree | e7966725208b1225293ae4ce76d74c6b6f0d9b6d /Tests/CMakeTests | |
parent | 84963f429a74c251accfcbd1d4923e1e8ced6bcf (diff) | |
download | CMake-5181f1f86a4d4c2ac09a540285c938fe2c2fa262.zip CMake-5181f1f86a4d4c2ac09a540285c938fe2c2fa262.tar.gz CMake-5181f1f86a4d4c2ac09a540285c938fe2c2fa262.tar.bz2 |
Tests: make tests pass with SOURCE_DATE_EPOCH set
Fix tests to account for commit 243aed52 (cmTimestamp: Support
SOURCE_DATE_EPOCH to override current time, 2017-01-25).
In openSUSE we are running the test-suite as part of the build and that
failed in these two places when building everything with
`SOURCE_DATE_EPOCH` set.
Diffstat (limited to 'Tests/CMakeTests')
-rw-r--r-- | Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake b/Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake index d0e5fe3..f1aa390 100644 --- a/Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake +++ b/Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake @@ -1,6 +1,7 @@ set(STAMP_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/FileTimestamp-Stamp") set(STAMP_FORMAT "%Y-%m-%d") +unset(ENV{SOURCE_DATE_EPOCH}) string(TIMESTAMP timestamp1 "${STAMP_FORMAT}") file(WRITE "${STAMP_FILENAME}" "foo") |