Skip to content

Commit

Permalink
apacheGH-41463: [C++] Skip TestConcurrentFillFromScalar for platforms…
Browse files Browse the repository at this point in the history
… without threading support (apache#41461)

### Rationale for this change

See apache#41463 and apache#40237 (comment)

### 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: apache#41463

Authored-by: Ruoxi Sun <[email protected]>
Signed-off-by: Joris Van den Bossche <[email protected]>
  • Loading branch information
zanmato1984 authored May 1, 2024
1 parent 0f7e9af commit 2502915
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp/src/arrow/array/array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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}) {
Expand Down

0 comments on commit 2502915

Please sign in to comment.