diff options
-rw-r--r-- | test/v4l2_compat/meson.build | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/v4l2_compat/meson.build b/test/v4l2_compat/meson.build index 87809589..10c46752 100644 --- a/test/v4l2_compat/meson.build +++ b/test/v4l2_compat/meson.build @@ -1,5 +1,9 @@ # SPDX-License-Identifier: CC0-1.0 +if not is_variable('v4l2_compat') + subdir_done() +endif + # 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. # @@ -10,11 +14,9 @@ if get_option('b_sanitize').contains('address') subdir_done() endif -if is_variable('v4l2_compat') - v4l2_compat_test = files('v4l2_compat_test.py') +v4l2_compat_test = files('v4l2_compat_test.py') - test('v4l2_compat_test', v4l2_compat_test, - args : v4l2_compat, - suite : 'v4l2_compat', - timeout : 60) -endif +test('v4l2_compat_test', v4l2_compat_test, + args : v4l2_compat, + suite : 'v4l2_compat', + timeout : 60) |