diff options
Diffstat (limited to 'Tests/CMakeLib/testUVProcessChainHelper.cxx')
-rw-r--r-- | Tests/CMakeLib/testUVProcessChainHelper.cxx | 7 |
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; } |