kou commented on issue #39225:
URL: https://github.com/apache/arrow/issues/39225#issuecomment-1874090612

   Oh... It didn't work...
   
   Does this work?
   
   ```diff
   diff --git a/c_glib/test/run-test.sh b/c_glib/test/run-test.sh
   index 33e9fbf85d..c7bc6edca5 100755
   --- a/c_glib/test/run-test.sh
   +++ b/c_glib/test/run-test.sh
   @@ -34,14 +34,14 @@ for module in "${modules[@]}"; do
      module_build_dir="${build_dir}/${module}"
      if [ -d "${module_build_dir}" ]; then
        LD_LIBRARY_PATH="${module_build_dir}:${LD_LIBRARY_PATH}"
   +    DYLD_LIBRARY_PATH="${module_build_dir}:${DYLD_LIBRARY_PATH}"
      fi
    done
    export LD_LIBRARY_PATH
   +export DYLD_LIBRARY_PATH
    
    if [ "${BUILD}" != "no" ]; then
   -  if [ -f "Makefile" ]; then
   -    make -j8 > /dev/null || exit $?
   -  elif [ -f "build.ninja" ]; then
   +  if [ -f "build.ninja" ]; then
        ninja || exit $?
      fi
    fi
   @@ -59,4 +59,19 @@ for module in "${modules[@]}"; do
    done
    export GI_TYPELIB_PATH
    
   -${GDB} ruby ${test_dir}/run-test.rb "$@"
   +if type rbenv > /dev/null 2>&1; then
   +  RUBY="$(rbenv which ruby)"
   +else
   +  RUBY=ruby
   +fi
   +DEBUGGER_ARGS=()
   +case "${DEBUGGER}" in
   +  "gdb")
   +    DEBUGGER_ARGS+=(--args)
   +    ;;
   +  "lldb")
   +    DEBUGGER_ARGS+=(--one-line "env DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}")
   +    DEBUGGER_ARGS+=(--)
   +    ;;
   +esac
   +${DEBUGGER} "${DEBUGGER_ARGS[@]}" "${RUBY}" ${test_dir}/run-test.rb "$@"
   ```
   
   ```console
   $ DEBUGGER=lldb BUNDLE_GEMFILE=../c_glib/Gemfile bundle exec 
../c_glib/test/run-test.sh -n test_cast
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to