From d1520bd06ef902f0c198bd841b15ac27855be696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 8 Apr 2022 18:28:16 +0400 Subject: [PATCH] glib/tests: move spawn-test-win32-gui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: commit 762ed2e82b ("Move tests/spawn-test.c -> glib/tests/spawn-test.c") Signed-off-by: Marc-André Lureau --- 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(-) rename {tests => glib/tests}/spawn-test-win32-gui.c (100%) diff --git a/glib/tests/meson.build b/glib/tests/meson.build index 07490a079..e2e53958d 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 9c8821132..907863bc8 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