meson: Enable wgl tests on mingw
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 21 Apr 2022 18:09:52 +0000 (02:09 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Jun 2022 09:27:06 +0000 (09:27 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16084>

src/gallium/targets/libgl-gdi/meson.build

index 1edb4a1..e344090 100644 (file)
@@ -68,21 +68,18 @@ if with_tests
     dependencies : [idep_gtest, dep_dxheaders, extra_test_deps],
   )
 
-  # The CI pipeline for MinGW doesn't support creating a window, so don't run these tests there
-  if with_tests and cc.get_id() != 'gcc'
-    wgl_test_env = environment()
-    wgl_test_env.append('PATH', libgallium_wgl_build_dir)
-    if with_shared_glapi
-      wgl_test_env.append('PATH', libglapi_build_dir)
-    endif
-
-    test(
-      'wgl',
-      test_wgl,
-      suite : ['wgl'],
-      env : wgl_test_env,
-      depends : [libopengl32],
-      protocol : gtest_test_protocol,
-    )
+  wgl_test_env = environment()
+  wgl_test_env.append('PATH', libgallium_wgl_build_dir)
+  if with_shared_glapi
+    wgl_test_env.append('PATH', libglapi_build_dir)
   endif
+
+  test(
+    'wgl',
+    test_wgl,
+    suite : ['wgl'],
+    env : wgl_test_env,
+    depends : [libopengl32],
+    protocol : gtest_test_protocol,
+  )
 endif