This is an automated email from the ASF dual-hosted git repository.

pitrou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new e3273f43783 MINOR: [C++] Bump bundled GTest version (#51242)
e3273f43783 is described below

commit e3273f43783f90db7b884beb1b7f7f869d5458e9
Author: Antoine Pitrou <[email protected]>
AuthorDate: Tue Sep 8 21:38:18 2026 +0200

    MINOR: [C++] Bump bundled GTest version (#51242)
    
    ### Rationale for this change
    
    This fixes some compilation errors with recent clang compilers, as seen on 
some of the C++ Extra workflow builds (on macOS, but I got similar errors on 
Ubuntu 24.04 with recent conda-forge compilers).
    
    Example errors include:
    
    ```
    
/Users/runner/work/arrow/arrow/build/cpp/_deps/googletest-src/googlemock/include/gmock/internal/gmock-internal-utils.h:302:10:
 error: 'visibility' attribute cannot be applied to types
      302 |   friend GTEST_API_ WithoutMatchers GetWithoutMatchers();
          |          ^
    /usr/local/include/gtest/internal/gtest-port.h:849:22: note: expanded from 
macro 'GTEST_API_'
      849 | #define GTEST_API_ [[gnu::visibility("default")]]
          |                      ^
    ```
    
    ```
    
/Users/runner/work/arrow/arrow/build/cpp/_deps/googletest-src/googlemock/include/gmock/gmock-matchers.h:4741:21:
 error: no template named 'StringLike' in namespace 'testing::internal'; did 
you mean 'StringType'?
     4741 |     const internal::StringLike<T>& str) {
          |           ~~~~~~~~~~^~~~~~~~~~
          |                     StringType
    ```
    
    ```
    
/Users/runner/work/arrow/arrow/build/cpp/_deps/googletest-src/googlemock/include/gmock/gmock-spec-builders.h:1470:15:
 error: no matching constructor for initialization of 'MutexLock' (aka 
'testing::internal::GTestMutexLock')
     1470 |     MutexLock l(&g_gmock_mutex);
          |               ^ ~~~~~~~~~~~~~~
    ```
    
    ```
    
/Users/runner/work/arrow/arrow/build/cpp/_deps/googletest-src/googlemock/include/gmock/gmock-spec-builders.h:1533:19:
 error: no member named 'Unlock' in 'testing::internal::MutexBase'; did you 
mean 'unlock'?
     1533 |     g_gmock_mutex.Unlock();
          |                   ^~~~~~
          |                   unlock
    ```
    
    ### Are these changes tested?
    
    By existing CI jobs. Also tested locally.
    
    ### Are there any user-facing changes?
    
    No.
    
    Authored-by: Antoine Pitrou <[email protected]>
    Signed-off-by: Antoine Pitrou <[email protected]>
---
 cpp/thirdparty/versions.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpp/thirdparty/versions.txt b/cpp/thirdparty/versions.txt
index 8abdff3093b..42d22b98749 100644
--- a/cpp/thirdparty/versions.txt
+++ b/cpp/thirdparty/versions.txt
@@ -74,8 +74,8 @@ ARROW_GOOGLE_CLOUD_CPP_BUILD_VERSION=v3.2.0
 
ARROW_GOOGLE_CLOUD_CPP_BUILD_SHA256_CHECKSUM=79ed6303d5b0c46f627bf8b38b5bd6b007c85e76c88722eb570a495bc2b579a0
 ARROW_GRPC_BUILD_VERSION=v1.76.0
 
ARROW_GRPC_BUILD_SHA256_CHECKSUM=0af37b800953130b47c075b56683ee60bdc3eda3c37fc6004193f5b569758204
-ARROW_GTEST_BUILD_VERSION=1.17.0
-ARROW_GTEST_BUILD_SHA256_CHECKSUM=65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c
+ARROW_GTEST_BUILD_VERSION=1.18.0
+ARROW_GTEST_BUILD_SHA256_CHECKSUM=6e3191c1455468b3fc35a417fb565c1c5071aee1b7e7f85e30cf48a98d37d8b5
 ARROW_JEMALLOC_BUILD_VERSION=5.3.0
 
ARROW_JEMALLOC_BUILD_SHA256_CHECKSUM=2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa
 ARROW_LZ4_BUILD_VERSION=v1.10.0

Reply via email to