summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestStopTime
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-03-17 15:10:39 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-03-17 15:10:39 (GMT)
commitb41647ca8fd5220c0d20f757f3db8c0c493b4d2e (patch)
treedb449509ee08fed0bc206b53ea4544feca096a20 /Tests/CTestTestStopTime
parent0ba9d041174f593509c44f84e0e70fafc6c0edc0 (diff)
downloadCMake-b41647ca8fd5220c0d20f757f3db8c0c493b4d2e.zip
CMake-b41647ca8fd5220c0d20f757f3db8c0c493b4d2e.tar.gz
CMake-b41647ca8fd5220c0d20f757f3db8c0c493b4d2e.tar.bz2
Move get_date call closer to ctest_test for more predictable results.
Diffstat (limited to 'Tests/CTestTestStopTime')
-rw-r--r--Tests/CTestTestStopTime/test.cmake.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/CTestTestStopTime/test.cmake.in b/Tests/CTestTestStopTime/test.cmake.in
index 0952dbf..abbee09 100644
--- a/Tests/CTestTestStopTime/test.cmake.in
+++ b/Tests/CTestTestStopTime/test.cmake.in
@@ -20,11 +20,12 @@ SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIP
INCLUDE("${CTEST_BINARY_DIRECTORY}/GetDate.cmake")
-GET_DATE()
-ADD_SECONDS(15)
-
CTEST_START(Experimental)
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
+
+GET_DATE()
+ADD_SECONDS(15)
+
CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res STOP_TIME "${new_hr}:${new_min}:${new_sec}")
#CTEST_SUBMIT()