From dfb075699cfec8b200a2cc7a6fdca4615d35c9ac Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 28 Oct 2024 05:44:18 +0100 Subject: [PATCH] testsuite: Set $PATH for introspection tests This is necessary because Windows uses $PATH to search for DLLs and meson isn't smart enough to figure out that this test needs access to the DLL. --- testsuite/introspection/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testsuite/introspection/meson.build b/testsuite/introspection/meson.build index f5993f657d..6be12164e4 100644 --- a/testsuite/introspection/meson.build +++ b/testsuite/introspection/meson.build @@ -3,6 +3,10 @@ env.prepend('GI_TYPELIB_PATH', project_build_root / 'gtk', ) +if host_machine.system() == 'windows' + env.prepend('PATH', project_build_root / 'gtk') +endif + test('api', find_program('api.py', dirs: meson.current_source_dir()), suite: ['introspection'],