[Mesa-dev] [PATCH 43/48] meson: don't build or run mesa-sha1 test on windows

Dylan Baker dylan at pnwbakers.com
Mon Jun 11 22:56:10 UTC 2018


It crashes hard (pop-up window and all).
---
 src/util/meson.build | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/util/meson.build b/src/util/meson.build
index c777984e28d..cf1eb64362d 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -146,16 +146,19 @@ if with_tests
     )
   )
 
-  test(
-    'mesa-sha1',
-    executable(
-      'mesa-sha1_test',
-      files('mesa-sha1_test.c'),
-      include_directories : inc_common,
-      link_with : libmesa_util,
-      c_args : [c_msvc_compat_args],
+  if host_machine.system() != 'windows'
+    # this test doesn't work on windows
+    test(
+      'mesa-sha1',
+      executable(
+        'mesa-sha1_test',
+        files('mesa-sha1_test.c'),
+        include_directories : inc_common,
+        link_with : libmesa_util,
+        c_args : [c_msvc_compat_args],
+      )
     )
-  )
+  endif
 
   subdir('tests/hash_table')
   subdir('tests/string_buffer')
-- 
2.17.1



More information about the mesa-dev mailing list