summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestResourceLock
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-03-03 15:49:21 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-03-03 15:49:21 (GMT)
commit9d7e08de483270b89de4219c34afc1e8b9e96b55 (patch)
tree3b86e9c0769d7cfa0e0ddb5c0edbb04db630986b /Tests/CTestTestResourceLock
parent2fd9b8072bb15e16446e15c1165566d4a238e4cc (diff)
downloadCMake-9d7e08de483270b89de4219c34afc1e8b9e96b55.zip
CMake-9d7e08de483270b89de4219c34afc1e8b9e96b55.tar.gz
CMake-9d7e08de483270b89de4219c34afc1e8b9e96b55.tar.bz2
Remove empty_binary_dir command in new unit test
Diffstat (limited to 'Tests/CTestTestResourceLock')
-rw-r--r--Tests/CTestTestResourceLock/lockFile.c2
-rw-r--r--Tests/CTestTestResourceLock/test.cmake.in2
2 files changed, 1 insertions, 3 deletions
diff --git a/Tests/CTestTestResourceLock/lockFile.c b/Tests/CTestTestResourceLock/lockFile.c
index f8edc3f..a6a4dc0 100644
--- a/Tests/CTestTestResourceLock/lockFile.c
+++ b/Tests/CTestTestResourceLock/lockFile.c
@@ -1,7 +1,7 @@
#include <stdio.h>
/* Disable deprecation warning for fopen */
-#define _CRT_SECURE_NO_WARNINGS
+#pragma warning(disable: 4996)
/*if run serially, works fine.
If run in parallel, someone will attempt to delete
diff --git a/Tests/CTestTestResourceLock/test.cmake.in b/Tests/CTestTestResourceLock/test.cmake.in
index e58ae20..0f353b8 100644
--- a/Tests/CTestTestResourceLock/test.cmake.in
+++ b/Tests/CTestTestResourceLock/test.cmake.in
@@ -16,8 +16,6 @@ SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
SET(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
-CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})
-
CTEST_START(Experimental)
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)