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.
This commit is contained in:
Benjamin Otte
2024-10-28 05:44:18 +01:00
parent 3ca5a75ab0
commit dfb075699c

View File

@@ -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'],