Nils Gladitz 7f0d4aff24 CTest: fix regressions introduced by the ctest-fix-run-serial topic
The first regression resulted in endless looping due to unrun test
dependencies. The second regression prioritized all tests with dependencies
in serial test runs.
2013-12-23 15:31:15 +01:00

11 lines
232 B
CMake

cmake_minimum_required(VERSION 2.8.12)
project(CTestTestMissingDependsExe)
enable_testing()
add_test(test1 ${CMAKE_COMMAND} -E echo test)
add_test(test2 non-existent-command)
set_tests_properties(test1 PROPERTIES DEPENDS test2)