meson/util: Don't run string_buffer tests on mingw
authorDylan Baker <dylan@pnwbakers.com>
Tue, 8 Oct 2019 20:38:01 +0000 (13:38 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 10 Oct 2019 23:33:04 +0000 (16:33 -0700)
They succeed with MSVC but not with MinGW. I don't understand why they
fail.

Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
src/util/meson.build

index 096a3d9..f69ebe9 100644 (file)
@@ -270,7 +270,10 @@ if with_tests
   subdir('tests/fast_idiv_by_const')
   subdir('tests/fast_urem_by_const')
   subdir('tests/hash_table')
-  subdir('tests/string_buffer')
+  if not (host_machine.system() == 'windows' and cc.get_id() == 'gcc')
+    # FIXME: These tests fail with mingw, but not with msvc.
+    subdir('tests/string_buffer')
+  endif
   if cc.has_header('sys/time.h')  # MinGW has this, but Vanilla windows doesn't
     subdir('tests/timespec')
   endif