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

Dylan Baker dylan at pnwbakers.com
Tue Aug 7 00:51:21 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 6386d945a22..5e6766fc8ad 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -150,16 +150,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.18.0



More information about the mesa-dev mailing list