Commit 02de1fa1 authored by Jan Tojnar's avatar Jan Tojnar Committed by Olivier Crête
Browse files

meson: fix test-gstreamer

On Nix, test-gstreamer fails with

	36/38 test-gstreamer                          FAIL     0.07 s (exit status 1)

	--- command ---
	BUILT_WITH_MESON='1' /build/libnice/build/tests/nice-test-gstreamer
	--- stdout ---
	Running suite(s): nice_gstreamer_test
	0%: Checks: 1, Failures: 1, Errors: 0
	../libs/gst/check/gstcheck.c:466:F:nice:buffer_list_test:0: Could not create a 'nicesink' element
	Check suite udpsink ran in 0.002s (tests failed: 1)

Let’s add the build directory to GST_PLUGIN_SYSTEM_PATH_1_0, so that
the test can find the built GStreamer element.
parent 35aa0b9b
......@@ -67,7 +67,9 @@ if gst_dep.found()
dependencies: [nice_deps, gst_check, libm],
link_with: libnice,
install: false)
test('test-gstreamer', exe, env: tenv)
gst_env = tenv
gst_env.append('GST_PLUGIN_PATH_1_0', join_paths(meson.current_build_dir(), '..', 'gst'))
test('test-gstreamer', exe, env: gst_env)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment