This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new 9343f1a fix(dev/release): Increase test discovery timeout value (#300)
9343f1a is described below
commit 9343f1a66bb5ae2403115c4bd2d7fb80cea5c887
Author: Dewey Dunnington <[email protected]>
AuthorDate: Thu Sep 21 23:06:05 2023 +0200
fix(dev/release): Increase test discovery timeout value (#300)
Closes #244.
---
CMakeLists.txt | 15 +++++++++------
CMakeUserPresets.json.example | 2 +-
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5691f3a..9310bad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -230,10 +230,13 @@ if(NANOARROW_BUILD_TESTS)
target_link_libraries(nanoarrow_hpp_test nanoarrow gtest_main
coverage_config)
include(GoogleTest)
- gtest_discover_tests(utils_test)
- gtest_discover_tests(buffer_test)
- gtest_discover_tests(array_test)
- gtest_discover_tests(schema_test)
- gtest_discover_tests(array_stream_test)
- gtest_discover_tests(nanoarrow_hpp_test)
+ # Some users have reported a timeout with the default value of 5
+ # Building with -DBUILD_SHARED_LIBS=ON may also help reduce the size of test
+ # executables.
+ gtest_discover_tests(utils_test DISCOVERY_TIMEOUT 10)
+ gtest_discover_tests(buffer_test DISCOVERY_TIMEOUT 10)
+ gtest_discover_tests(array_test DISCOVERY_TIMEOUT 10)
+ gtest_discover_tests(schema_test DISCOVERY_TIMEOUT 10)
+ gtest_discover_tests(array_stream_test DISCOVERY_TIMEOUT 10)
+ gtest_discover_tests(nanoarrow_hpp_test DISCOVERY_TIMEOUT 10)
endif()
diff --git a/CMakeUserPresets.json.example b/CMakeUserPresets.json.example
index 1090014..796ff2c 100644
--- a/CMakeUserPresets.json.example
+++ b/CMakeUserPresets.json.example
@@ -19,7 +19,7 @@
{
"name": "user-test-preset",
"description": "",
- "displayName": "(user) test preset)",
+ "displayName": "(user) test preset",
"configurePreset": "user-local",
"environment": {
"CTEST_OUTPUT_ON_FAILURE": "1"