summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/v4l2_compat/meson.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/v4l2_compat/meson.build b/test/v4l2_compat/meson.build
index 5b29de7c..87809589 100644
--- a/test/v4l2_compat/meson.build
+++ b/test/v4l2_compat/meson.build
@@ -1,5 +1,15 @@
# SPDX-License-Identifier: CC0-1.0
+# If ASan is enabled, the link order runtime check will fail as v4l2-ctl and
+# v4l2-compliance are not linked to ASan. Skip the test in that case.
+#
+# TODO: Find a way to LD_PRELOAD the ASan dynamic library instead, in a
+# cross-platform way with support for both gcc and clang.
+
+if get_option('b_sanitize').contains('address')
+ subdir_done()
+endif
+
if is_variable('v4l2_compat')
v4l2_compat_test = files('v4l2_compat_test.py')