diff options
author | Brad King <brad.king@kitware.com> | 2019-05-03 15:48:33 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-05-03 15:48:46 (GMT) |
commit | 186ca170da51d64a50bb15bfd067ca9b4c987327 (patch) | |
tree | 7e24dcdf673e68d182f4505d55fa614b9da2f7a2 /Tests/RunCMake/CommandLine | |
parent | 6f242acfcb72881d184f5b2468fd4ddcadce01d8 (diff) | |
parent | c85524a94ace9ee400229fede179a605b1c144e3 (diff) | |
download | CMake-186ca170da51d64a50bb15bfd067ca9b4c987327.zip CMake-186ca170da51d64a50bb15bfd067ca9b4c987327.tar.gz CMake-186ca170da51d64a50bb15bfd067ca9b4c987327.tar.bz2 |
Merge topic 'std-pipes-always'
c85524a94a Ensure stdin, stdout, and stderr pipes are always open
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Kyle Edwards <kyle.edwards@kitware.com>
Merge-request: !3282
Diffstat (limited to 'Tests/RunCMake/CommandLine')
-rw-r--r-- | Tests/RunCMake/CommandLine/RunCMakeTest.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake index 49d3608..b9aa536 100644 --- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake +++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake @@ -451,4 +451,8 @@ function(reject_fifo) endfunction() if(CMAKE_HOST_UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "CYGWIN") reject_fifo() + run_cmake_command(closed_stdin sh -c "\"${CMAKE_COMMAND}\" --version <&-") + run_cmake_command(closed_stdout sh -c "\"${CMAKE_COMMAND}\" --version >&-") + run_cmake_command(closed_stderr sh -c "\"${CMAKE_COMMAND}\" --version 2>&-") + run_cmake_command(closed_stdall sh -c "\"${CMAKE_COMMAND}\" --version <&- >&- 2>&-") endif() |