summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestSerialInDepends/test.ctest
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CTestTestSerialInDepends/test.ctest')
-rw-r--r--Tests/CTestTestSerialInDepends/test.ctest3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CTestTestSerialInDepends/test.ctest b/Tests/CTestTestSerialInDepends/test.ctest
index 28ee094..cf0d314 100644
--- a/Tests/CTestTestSerialInDepends/test.ctest
+++ b/Tests/CTestTestSerialInDepends/test.ctest
@@ -2,6 +2,9 @@ set(CTEST_RUN_CURRENT_SCRIPT 0)
set(LOCK_FILE "${TEST_NAME}.lock")
+# Delete the old lock file in case it's lingering from a previous failed test run
+file(REMOVE "${LOCK_FILE}")
+
if("${TEST_NAME}" STREQUAL "i_want_to_be_alone")
file(GLOB LOCK_FILES *.lock)
if(LOCK_FILES)