summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2013-01-23 19:23:18 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2013-01-24 23:31:41 (GMT)
commit4d0e2e81e9c60f6f147f3b332b1d885d543b2084 (patch)
tree0febd6cf9062f0cc85677818d53ad044fabef936 /Tests
parente03f83f394c53acbcc9dcff03f189170b2f33322 (diff)
downloadCMake-4d0e2e81e9c60f6f147f3b332b1d885d543b2084.zip
CMake-4d0e2e81e9c60f6f147f3b332b1d885d543b2084.tar.gz
CMake-4d0e2e81e9c60f6f147f3b332b1d885d543b2084.tar.bz2
ProcessorCount test: require SystemInformation process to work
Currently this silently fails on some systems. Make sure those things get noticed so we can fix that.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeTests/ProcessorCountTest.cmake.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/CMakeTests/ProcessorCountTest.cmake.in b/Tests/CMakeTests/ProcessorCountTest.cmake.in
index 15e0219..f92dcc4 100644
--- a/Tests/CMakeTests/ProcessorCountTest.cmake.in
+++ b/Tests/CMakeTests/ProcessorCountTest.cmake.in
@@ -12,7 +12,14 @@ execute_process(
COMMAND "${KWSYS_TEST_EXE}"
testSystemInformation
OUTPUT_VARIABLE tsi_out
- ERROR_VARIABLE tsi_err)
+ ERROR_VARIABLE tsi_err
+ RESULT_VARIABLE tsi_res
+)
+if (tsi_res)
+ message("executing \"${KWSYS_TEST_EXE}\" failed")
+ message(FATAL_ERROR "output: ${tsi_res}")
+endif ()
+
string(REGEX REPLACE "(.*)GetNumberOfPhysicalCPU:.([0-9]*)(.*)" "\\2"
system_info_processor_count "${tsi_out}")