tests: Use OS-specific seperator for whitelist

... instead of hardcoded ':', since G_SEARCHPATH_SEPARATOR_S
varies depending on OS (e.g., ':' for *nix and ';' for Windows).
Note that, when the seperator is not specified explicitly, Meson
will use ';' for Windows and ':' for *nix respectively.
This commit is contained in:
Seungha Yang 2018-12-07 20:35:37 +09:00 committed by Tim-Philipp Müller
parent 076d023508
commit 548b72d693

View file

@ -159,7 +159,7 @@ foreach t : base_tests
env.set('CK_DEFAULT_TIMEOUT', '20')
env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', join_paths(gst_tag_dir, 'license-translations.dict'))
env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
'gst-plugins-base@' + meson.build_root(), separator: ':')
'gst-plugins-base@' + meson.build_root())
env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
test(test_name, exe, env: env, timeout: 3 * 60)
endif
@ -183,7 +183,7 @@ foreach group : [1, 2, 3, 4, 5, 6]
env.set('CK_DEFAULT_TIMEOUT', '20')
env.set('GST_TAG_LICENSE_TRANSLATIONS_DICT', join_paths(gst_tag_dir, 'license-translations.dict'))
env.set('GST_PLUGIN_LOADING_WHITELIST', 'gstreamer',
'gst-plugins-base@' + meson.build_root(), separator: ':')
'gst-plugins-base@' + meson.build_root())
env.set('GST_REGISTRY', join_paths(meson.current_build_dir(), '@0@.registry'.format(test_name)))
test(vscale_test_name, exe, env: env, timeout: 3 * 60)