summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-31 09:04:21 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-31 09:04:21 -0500
commit6ec0c09a7a1f148f747db97228fc3bf1f63e3ed1 (patch)
tree9c50e6ac1d43cb7bc9fb6f96c3eb9ae3c99526a9 /Tests
parent5accbaccbcc5f876a444c26987b66bf6d023880d (diff)
parent5181f1f86a4d4c2ac09a540285c938fe2c2fa262 (diff)
downloadcmake-6ec0c09a7a1f148f747db97228fc3bf1f63e3ed1.tar.gz
Merge topic 'topic-reproducible-build'
5181f1f8 Tests: make tests pass with SOURCE_DATE_EPOCH set
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake1
-rw-r--r--Tests/CTestTestStopTime/GetDate.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake b/Tests/CMakeTests/File-TIMESTAMP-NotBogus.cmake
index d0e5fe35f1..f1aa39062b 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")
diff --git a/Tests/CTestTestStopTime/GetDate.cmake b/Tests/CTestTestStopTime/GetDate.cmake
index 1f4cb24d94..46ab2fbacf 100644
--- a/Tests/CTestTestStopTime/GetDate.cmake
+++ b/Tests/CTestTestStopTime/GetDate.cmake
@@ -49,6 +49,7 @@ macro(GET_DATE)
# 01/12/2006 08:55:12
# mm/dd/YYYY HH:MM:SS
#
+ unset(ENV{SOURCE_DATE_EPOCH})
string(TIMESTAMP "${GD_PREFIX}OV" "%m/%d/%Y %H:%M:%S")
if(${GD_PREFIX}VERBOSE)