Merge branch 'testsuite-introspection-extend-envvars' into 'main'

testsuite: introspection: Do not override environment variables.

See merge request GNOME/gtk!4268
This commit is contained in:
Matthias Clasen 2021-12-20 19:08:59 +00:00
commit 855357f871

View File

@ -1,10 +1,12 @@
py = import('python').find_installation('python3', modules: ['gi'])
env = environment()
env.prepend('GI_TYPELIB_PATH',
join_paths(project_build_root, 'gtk'),
gi_dep.get_pkgconfig_variable('typelibdir'))
env.prepend('LD_PRELOAD', join_paths(project_build_root, 'gtk', 'libgtk-4.so'))
test('api',
find_program('api.py', dirs: meson.current_source_dir()),
suite: ['introspection'],
env: [
'GI_TYPELIB_PATH=@0@/gtk:@1@'.format(project_build_root,
gi_dep.get_pkgconfig_variable('typelibdir')),
'LD_PRELOAD=@0@/gtk/libgtk-4.so'.format(project_build_root),
])
env: env)