summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-21 19:38:47 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-21 19:39:05 (GMT)
commitd6a6024e9eb993d94d24bb0d98f966c50079a525 (patch)
treecc12fd81517b54827590158ac9461e087138d4c1 /Tests
parentdbc0ec1648b493b237efd704bec38c757b6da5a5 (diff)
downloadCMake-d6a6024e9eb993d94d24bb0d98f966c50079a525.zip
CMake-d6a6024e9eb993d94d24bb0d98f966c50079a525.tar.gz
CMake-d6a6024e9eb993d94d24bb0d98f966c50079a525.tar.bz2
Tests: Hide errors from `ldd --help` output check
If `--help` is not a valid option then it may print content to stderr, so we need to capture that.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index b6d1c38..dbd5530 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -309,7 +309,8 @@ endif()
if("${CMAKE_GENERATOR}" MATCHES "Make|Ninja")
if(UNIX AND NOT CYGWIN)
execute_process(COMMAND ldd --help
- OUTPUT_VARIABLE LDD_HELP)
+ OUTPUT_VARIABLE LDD_HELP
+ ERROR_VARIABLE LDD_ERR)
if("${LDD_HELP}" MATCHES
"(-r, --function-relocs.*process data and function relocations.*-u, --unused.*print unused direct dependencies)")
add_RunCMake_test(LinkWhatYouUse)