play: Actually check for valgrind for the tests
authorSebastian Dröge <sebastian@centricular.com>
Fri, 27 Dec 2024 17:01:21 +0000 (19:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 28 Dec 2024 11:51:50 +0000 (13:51 +0200)
Other tests in gst-plugins-bad also assumed it to be checked.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7650>

subprojects/gst-plugins-bad/tests/check/meson.build

index dabe2f8ec9a66f1a7effe4fa329d6aba35f7a4b1..29b92a330b964e7706f899dd53b6f079a846edbb 100644 (file)
@@ -1,3 +1,8 @@
+valgrind_dep = dependency('valgrind', required: false).partial_dependency(compile_args : true)
+if valgrind_dep.found()
+  cdata.set('HAVE_VALGRIND', 1)
+endif
+
 have_registry = true # FIXME get_option('registry')
 
 libparser = static_library('parser',