util: Disable tests/sparse_array_test.cpp on MacOS as it's too slow
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 28 Jul 2022 18:42:42 +0000 (02:42 +0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Jul 2022 21:38:01 +0000 (21:38 +0000)
[----------] 1 test from SparseArrayTest
[ RUN      ] SparseArrayTest.Multithread
[       OK ] SparseArrayTest.Multithread (105624 ms)
[----------] 1 test from SparseArrayTest (105624 ms total)

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17802>

src/util/meson.build

index b99d75b..cd44e49 100644 (file)
@@ -343,7 +343,6 @@ if with_tests
     'tests/register_allocate_test.cpp',
     'tests/roundeven_test.cpp',
     'tests/set_test.cpp',
-    'tests/sparse_array_test.cpp',
     'tests/timespec_test.cpp',
     'tests/u_atomic_test.cpp',
     'tests/u_debug_stack_test.cpp',
@@ -366,6 +365,13 @@ if with_tests
     )
   endif
 
+  # FIXME: this test cause a big timeout on MacOS
+  if host_machine.system() != 'darwin'
+    files_util_tests += files(
+      'tests/sparse_array_test.cpp',
+    )
+  endif
+
   if with_shader_cache
     files_util_tests += files(
       'tests/cache_test.cpp',