diff --git a/ci/scripts/cpp_test.sh b/ci/scripts/cpp_test.sh index 2c640f2c1fb..7912bf23e49 100755 --- a/ci/scripts/cpp_test.sh +++ b/ci/scripts/cpp_test.sh @@ -80,7 +80,7 @@ case "$(uname)" in ;; esac -if [ "${ARROW_EMSCRIPTEN:-OFF}" = "ON" ]; then +if [ "${ARROW_EMSCRIPTEN:-OFF}" = "ON" ]; then n_jobs=1 # avoid spurious fails on emscripten due to loading too many big executables fi diff --git a/cpp/src/arrow/csv/column_decoder_test.cc b/cpp/src/arrow/csv/column_decoder_test.cc index ebac7a3da2f..56773264717 100644 --- a/cpp/src/arrow/csv/column_decoder_test.cc +++ b/cpp/src/arrow/csv/column_decoder_test.cc @@ -175,6 +175,9 @@ class NullColumnDecoderTest : public ColumnDecoderTest { } void TestThreaded() { +#ifndef ARROW_ENABLE_THREADING + GTEST_SKIP() << "Test requires threading support"; +#endif constexpr int NITERS = 10; auto type = int32(); MakeDecoder(type); @@ -257,6 +260,10 @@ class TypedColumnDecoderTest : public ColumnDecoderTest { } void TestThreaded() { +#ifndef ARROW_ENABLE_THREADING + GTEST_SKIP() << "Test requires threading support"; +#endif + constexpr int NITERS = 10; auto type = uint32(); MakeDecoder(type, default_options); @@ -305,6 +312,10 @@ class InferringColumnDecoderTest : public ColumnDecoderTest { } void TestThreaded() { +#ifndef ARROW_ENABLE_THREADING + GTEST_SKIP() << "Test requires threading support"; +#endif + constexpr int NITERS = 10; auto type = float64(); MakeDecoder(default_options); diff --git a/cpp/src/arrow/csv/converter_test.cc b/cpp/src/arrow/csv/converter_test.cc index ea4e171d57e..657e8d813ca 100644 --- a/cpp/src/arrow/csv/converter_test.cc +++ b/cpp/src/arrow/csv/converter_test.cc @@ -625,6 +625,11 @@ TEST(TimestampConversion, UserDefinedParsers) { } TEST(TimestampConversion, UserDefinedParsersWithZone) { +#ifdef __EMSCRIPTEN__ + GTEST_SKIP() << "Test temporarily disabled due to emscripten bug " + "https://github.com/emscripten-core/emscripten/issues/20467"; +#endif + auto options = ConvertOptions::Defaults(); auto type = timestamp(TimeUnit::SECOND, "America/Phoenix");