Browse Source

Tests: Make a CTest test deterministic.

The test expect sub-test not to run in parallel.
Stephen Kelly 11 years ago
parent
commit
fcf9cf6cd8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake

+ 3 - 0
Tests/RunCMake/CTestCommandLine/RunCMakeTest.cmake

@@ -1,5 +1,8 @@
 include(RunCMake)
 
+unset(ENV{CTEST_PARALLEL_LEVEL})
+unset(ENV{CTEST_OUTPUT_ON_FAILURE})
+
 run_cmake_command(repeat-until-fail-bad1
   ${CMAKE_CTEST_COMMAND} --repeat-until-fail
   )