summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-02-21 12:40:38 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-21 18:58:47 +0100
commit4fc6bc480408b24509d449a4c26f2dcab18eaaee (patch)
tree4eeb3baad583160099d533395429f3018fb2dd1e /tests
parentd5afe6e7e4a9a82d78f0b8c901bbb84f1b08fefc (diff)
Print out the try_compile output for tests expected to fail.
This way, ctest -V shows that it fails for the expected reason. Change-Id: I97589d4e90d889ea0b10dbd6192526712dbfdd8e Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/cmake/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/cmake/CMakeLists.txt b/tests/manual/cmake/CMakeLists.txt
index 7ec3cebf4b..930936a7b5 100644
--- a/tests/manual/cmake/CMakeLists.txt
+++ b/tests/manual/cmake/CMakeLists.txt
@@ -59,7 +59,9 @@ macro(expect_fail _dir)
try_compile(Result \${CMAKE_CURRENT_BINARY_DIR}/${_dir}
\${CMAKE_CURRENT_SOURCE_DIR}/${_dir}
${_dir}
+ OUTPUT_VARIABLE Out
)
+ message(\"\${Out}\")
if (Result)
message(SEND_ERROR \"Succeeded build which should fail\")
endif()