[glib: 1/12] glib/tests: move spawn-test-win32-gui




commit d1520bd06ef902f0c198bd841b15ac27855be696
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Fri Apr 8 18:28:16 2022 +0400

    glib/tests: move spawn-test-win32-gui
    
    Fixes: commit 762ed2e82b ("Move tests/spawn-test.c -> glib/tests/spawn-test.c")
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 glib/tests/meson.build                       | 7 +++++++
 {tests => glib/tests}/spawn-test-win32-gui.c | 0
 tests/meson.build                            | 6 ------
 3 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/glib/tests/meson.build b/glib/tests/meson.build
index 07490a0793..e2e53958df 100644
--- a/glib/tests/meson.build
+++ b/glib/tests/meson.build
@@ -306,6 +306,13 @@ if host_machine.system() == 'windows'
     install_dir: installed_tests_execdir,
     install: installed_tests_enabled,
   )
+  executable('spawn-test-win32-gui', 'spawn-test-win32-gui.c',
+    c_args : test_cargs,
+    dependencies : test_deps,
+    install_dir: installed_tests_execdir,
+    install: installed_tests_enabled,
+    win_subsystem: 'windows',
+  )
 endif
 
 executable('testing-helper', 'testing-helper.c',
diff --git a/tests/spawn-test-win32-gui.c b/glib/tests/spawn-test-win32-gui.c
similarity index 100%
rename from tests/spawn-test-win32-gui.c
rename to glib/tests/spawn-test-win32-gui.c
diff --git a/tests/meson.build b/tests/meson.build
index 9c8821132b..907863bc88 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -42,12 +42,6 @@ test_extra_programs = {
   'assert-msg-test' : {},
 }
 
-if host_machine.system() == 'windows'
-  test_extra_programs += {
-    'spawn-test-win32-gui' : {'win_subsystem' : 'windows'}
-  }
-endif
-
 module_suffix = []
 # Keep the autotools convention for shared module suffix because GModule
 # depends on it: https://gitlab.gnome.org/GNOME/glib/issues/520


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]