diff options
author | Brad King <brad.king@kitware.com> | 2024-01-24 15:07:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-24 21:59:49 (GMT) |
commit | b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6 (patch) | |
tree | 98d4ead44dc511d27dace599003db68c6be72423 /Tests | |
parent | 116bb2b70f87276515f9b64937502ce6c8754cbd (diff) | |
download | CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.zip CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.tar.gz CMake-b6e4e4babcdc6b44a1d494c4e9c07634c2b3bcd6.tar.bz2 |
cmUVProcessChain: Simplify SetExternalStream usage
It is commonly called with the `fileno()` of a `FILE*` stream,
so accept the latter directly.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testUVProcessChain.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Tests/CMakeLib/testUVProcessChain.cxx b/Tests/CMakeLib/testUVProcessChain.cxx index aab084b..c6404ac 100644 --- a/Tests/CMakeLib/testUVProcessChain.cxx +++ b/Tests/CMakeLib/testUVProcessChain.cxx @@ -12,8 +12,6 @@ #include <cm3p/uv.h> -#include "cm_fileno.hxx" - #include "cmGetPipes.h" #include "cmStringAlgorithms.h" #include "cmUVHandlePtr.h" @@ -632,8 +630,7 @@ bool testUVProcessChainInputFile(const char* helperCommand) cmUVProcessChainBuilder builder; builder.AddCommand({ helperCommand, "dedup" }) - .SetExternalStream(cmUVProcessChainBuilder::Stream_INPUT, - cm_fileno(f.get())) + .SetExternalStream(cmUVProcessChainBuilder::Stream_INPUT, f.get()) .SetBuiltinStream(cmUVProcessChainBuilder::Stream_OUTPUT); auto chain = builder.Start(); |