CMake: Fix handling of insignificant_test.

The test should still be run, even though it is insignificant.

Change-Id: I6a3853e2b0e9670152b4f329dbceed2986a7e008
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Stephen Kelly 2013-07-09 11:14:50 +02:00 committed by The Qt Project
parent dacf01e43f
commit a3dfb4db5f

View File

@ -9,8 +9,6 @@ win32 {
check.commands =
QMAKE_EXTRA_TARGETS *= check
insignificant_test: return()
isEmpty(CMAKE_VERSION) {
message("cmake executable not found. Not running CMake unit tests")
return()
@ -94,3 +92,6 @@ check.commands = \
$${CMAKE_MODULE_VERSIONS} \
-DCMAKE_MODULES_UNDER_TEST=\"$$CMAKE_MODULES_UNDER_TEST\" && \
$(TESTRUNNER) ctest --output-on-failure
insignificant_test:!isEmpty(check.commands): \
check.commands = -$${check.commands}