summaryrefslogtreecommitdiff
path: root/Tests/CTestTestStopTime
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2017-01-29 11:52:55 +0100
committerBrad King <brad.king@kitware.com>2017-01-30 09:25:44 -0500
commit5181f1f86a4d4c2ac09a540285c938fe2c2fa262 (patch)
treee7966725208b1225293ae4ce76d74c6b6f0d9b6d /Tests/CTestTestStopTime
parent84963f429a74c251accfcbd1d4923e1e8ced6bcf (diff)
downloadcmake-5181f1f86a4d4c2ac09a540285c938fe2c2fa262.tar.gz
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/CTestTestStopTime')
-rw-r--r--Tests/CTestTestStopTime/GetDate.cmake1
1 files changed, 1 insertions, 0 deletions
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)