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

jorisvandenbossche 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 250291500b GH-41463: [C++] Skip TestConcurrentFillFromScalar for 
platforms without threading support (#41461)
250291500b is described below

commit 250291500b6a7d5d934901acef708cef2eb1dc08
Author: Rossi Sun <[email protected]>
AuthorDate: Wed May 1 14:39:35 2024 +0800

    GH-41463: [C++] Skip TestConcurrentFillFromScalar for platforms without 
threading support (#41461)
    
    
    
    ### Rationale for this change
    
    See #41463 and 
https://github.com/apache/arrow/pull/40237#issuecomment-2084577090
    
    ### What changes are included in this PR?
    
    Skip test for platforms that have no threading support.
    
    ### Are these changes tested?
    
    Change is test.
    
    ### Are there any user-facing changes?
    
    None.
    
    * GitHub Issue: #41463
    
    Authored-by: Ruoxi Sun <[email protected]>
    Signed-off-by: Joris Van den Bossche <[email protected]>
---
 cpp/src/arrow/array/array_test.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpp/src/arrow/array/array_test.cc 
b/cpp/src/arrow/array/array_test.cc
index af64908b59..7e25ad61fa 100644
--- a/cpp/src/arrow/array/array_test.cc
+++ b/cpp/src/arrow/array/array_test.cc
@@ -827,6 +827,9 @@ TEST_F(TestArray, TestFillFromScalar) {
 // GH-40069: Data-race when concurrent calling ArraySpan::FillFromScalar of 
the same
 // scalar instance.
 TEST_F(TestArray, TestConcurrentFillFromScalar) {
+#ifndef ARROW_ENABLE_THREADING
+  GTEST_SKIP() << "Test requires threading support";
+#endif
   for (auto type : TestArrayUtilitiesAgainstTheseTypes()) {
     ARROW_SCOPED_TRACE("type = ", type->ToString());
     for (auto seed : {0u, 0xdeadbeef, 42u}) {

Reply via email to