@@ -65,11 +65,7 @@ nanoarrow_dep = declare_dependency(include_directories: [curdir, incdir],
6565 link_with : nanoarrow_lib)
6666
6767if get_option (' ipc' )
68- cmake = import (' cmake' )
69- cmake_opts = cmake.subproject_options()
70- cmake_opts.add_cmake_defines({' CMAKE_POSITION_INDEPENDENT_CODE' : true })
71- flatcc_subproj = cmake.subproject (' flatcc' , options : cmake_opts)
72- flatcc_dep = flatcc_subproj.dependency (' flatccrt' )
68+ flatcc_dep = dependency (' flatcc' )
7369
7470 nanoarrow_ipc_lib = build_target (
7571 ' nanoarrow_ipc' ,
@@ -172,9 +168,14 @@ if get_option('tests')
172168 ipc_test_files = {
173169 ' nanoarrow-ipc-decoder' : {
174170 ' deps' : [nanoarrow_ipc_dep, arrow_dep, gtest_dep],
171+ ' timeout' : 30 ,
175172 },
176173 ' nanoarrow-ipc-reader' : {
177174 ' deps' : [nanoarrow_ipc_dep, arrow_dep, gtest_dep],
175+ # the ipc reader test can take longer when executed
176+ # under valgrind, hence the increased timeout
177+ ' timeout' : 90 ,
178+
178179 },
179180 ' nanoarrow-ipc-files' : {
180181 ' deps' : [
@@ -184,9 +185,11 @@ if get_option('tests')
184185 gtest_dep,
185186 nlohmann_json_dep
186187 ],
188+ ' timeout' : 30 ,
187189 },
188190 ' nanoarrow-ipc-hpp' : {
189191 ' deps' : [nanoarrow_ipc_dep, gtest_dep],
192+ ' timeout' : 30 ,
190193 },
191194 }
192195
@@ -196,7 +199,7 @@ if get_option('tests')
196199 name.replace(' -' , ' _' ) + ' _test.cc' ,
197200 dependencies : config[' deps' ]
198201 )
199- test (name, exc)
202+ test (name, exc, timeout : config[ ' timeout ' ] )
200203 endforeach
201204 endif
202205endif
0 commit comments