diff mbox series

[2/4] meson: Disable test-char on msys2/mingw for fixing tests stuck

Message ID 20200907200432.2418-3-luoyonggang@gmail.com (mailing list archive)
State New, archived
Headers show
Series Misc meson fixes along test-vmstate fixes | expand

Commit Message

Yonggang Luo Sept. 7, 2020, 8:04 p.m. UTC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
 tests/meson.build | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/meson.build b/tests/meson.build
index 7f27a15cee..cf816a33cc 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -198,8 +198,13 @@  if have_system
   # are not runnable under TSan due to a known issue.
   # https://github.com/google/sanitizers/issues/1116
   if 'CONFIG_TSAN' not in config_host
+    if 'CONFIG_POSIX' in config_host
+        tests += {
+          'test-char': ['socket-helpers.c', qom, io, chardev]
+        }
+    endif
+
     tests += {
-      'test-char': ['socket-helpers.c', qom, io, chardev],
       'test-qdev-global-props': [qom, hwcore, testqapi]
     }
   endif