GitHub user kou added a comment to the discussion: procdump on Cpp Windows CI

Ah, the command is executed in non MSYS2 environment. This may work:

```diff
diff --git a/cpp/cmake_modules/BuildUtils.cmake 
b/cpp/cmake_modules/BuildUtils.cmake
index 134f47b12e..3494d9f87f 100644
--- a/cpp/cmake_modules/BuildUtils.cmake
+++ b/cpp/cmake_modules/BuildUtils.cmake
@@ -736,11 +736,11 @@ function(ADD_TEST_CASE REL_TEST_NAME)
                valgrind --suppressions=valgrind.supp --tool=memcheck 
--gen-suppressions=all \
                  --num-callers=500 --leak-check=full 
--leak-check-heuristics=stdstring \
                  --error-exitcode=1 ${TEST_PATH} ${ARG_TEST_ARGUMENTS}")
-  elseif(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
+  elseif(MSVC OR CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
     add_test(NAME ${TEST_NAME} COMMAND ${TEST_NAME} ${ARG_TEST_ARGUMENTS})
   else()
     add_test(${TEST_NAME}
-             ${BUILD_SUPPORT_DIR}/run-test.sh
+             /usr/bin/env bash ${BUILD_SUPPORT_DIR}/run-test.sh
              ${CMAKE_BINARY_DIR}
              test
              ${TEST_PATH}
```

GitHub link: 
https://github.com/apache/arrow/discussions/46891#discussioncomment-13567735

----
This is an automatically sent email for user@arrow.apache.org.
To unsubscribe, please send an email to: user-unsubscr...@arrow.apache.org

Reply via email to