summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib/testUVProcessChainHelper.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-30 13:41:26 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-05-30 13:41:35 (GMT)
commit150f0f19bc4832c27cf70bdbc56a87867ef60b84 (patch)
treec9271da6886a0563f33f4ced653bd08908b1b793 /Tests/CMakeLib/testUVProcessChainHelper.cxx
parentf0e0eb63858489ecc33bed1d7e2539d75e932e8f (diff)
parent67bb1ee50cde981dd36f2b9964013c330f7e92fe (diff)
downloadCMake-150f0f19bc4832c27cf70bdbc56a87867ef60b84.zip
CMake-150f0f19bc4832c27cf70bdbc56a87867ef60b84.tar.gz
CMake-150f0f19bc4832c27cf70bdbc56a87867ef60b84.tar.bz2
Merge topic 'cmuvprocesschain-working-directory'
67bb1ee50c cmUVProcessChain: Add working directory option Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8512
Diffstat (limited to 'Tests/CMakeLib/testUVProcessChainHelper.cxx')
-rw-r--r--Tests/CMakeLib/testUVProcessChainHelper.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testUVProcessChainHelper.cxx b/Tests/CMakeLib/testUVProcessChainHelper.cxx
index bc0ef8e..82dafd2 100644
--- a/Tests/CMakeLib/testUVProcessChainHelper.cxx
+++ b/Tests/CMakeLib/testUVProcessChainHelper.cxx
@@ -7,6 +7,8 @@
#include <string>
#include <thread>
+#include "cmSystemTools.h"
+
static std::string getStdin()
{
char buffer[1024];
@@ -67,6 +69,11 @@ int main(int argc, char** argv)
std::abort();
#endif
}
+ if (command == "pwd") {
+ std::string cwd = cmSystemTools::GetCurrentWorkingDirectory();
+ std::cout << cwd << std::flush;
+ return 0;
+ }
return -1;
}