summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-08-04 18:08:17 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-08-07 15:26:05 (GMT)
commitfbdb1fd84347f4dcb65a50b888e13ece07a367d7 (patch)
tree009cdfbd3543a7974dc25fee179d24f22a9cf296 /Tests
parent21edd5af1f24d12612e3f6052b9497b848566855 (diff)
downloadCMake-fbdb1fd84347f4dcb65a50b888e13ece07a367d7.zip
CMake-fbdb1fd84347f4dcb65a50b888e13ece07a367d7.tar.gz
CMake-fbdb1fd84347f4dcb65a50b888e13ece07a367d7.tar.bz2
Source: Add cm_fileno wrapper
And use it where appropriate.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/testUVProcessChain.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CMakeLib/testUVProcessChain.cxx b/Tests/CMakeLib/testUVProcessChain.cxx
index fc84bb0..aab084b 100644
--- a/Tests/CMakeLib/testUVProcessChain.cxx
+++ b/Tests/CMakeLib/testUVProcessChain.cxx
@@ -12,6 +12,8 @@
#include <cm3p/uv.h>
+#include "cm_fileno.hxx"
+
#include "cmGetPipes.h"
#include "cmStringAlgorithms.h"
#include "cmUVHandlePtr.h"
@@ -630,7 +632,8 @@ bool testUVProcessChainInputFile(const char* helperCommand)
cmUVProcessChainBuilder builder;
builder.AddCommand({ helperCommand, "dedup" })
- .SetExternalStream(cmUVProcessChainBuilder::Stream_INPUT, fileno(f.get()))
+ .SetExternalStream(cmUVProcessChainBuilder::Stream_INPUT,
+ cm_fileno(f.get()))
.SetBuiltinStream(cmUVProcessChainBuilder::Stream_OUTPUT);
auto chain = builder.Start();