From 3a20080210c451ae6ece3f498cc46904f7d3ac8b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 27 Jul 2020 18:44:52 +0200 Subject: [PATCH] Build sandbox test only if seccomp enabled --- tests/meson.build | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index 4000bf6..d63015b 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -24,15 +24,17 @@ if check.found() test('session', session, timeout: 60*60 ) - - sandbox = executable('test_sandbox', ['test_sandbox.c', 'tests.c'], - dependencies: build_dependencies + test_dependencies, - include_directories: include_directories, - c_args: defines + flags - ) - test('sandbox', sandbox, - timeout: 60*60 - ) + + if seccomp.found() + sandbox = executable('test_sandbox', ['test_sandbox.c', 'tests.c'], + dependencies: build_dependencies + test_dependencies, + include_directories: include_directories, + c_args: defines + flags + ) + test('sandbox', sandbox, + timeout: 60*60 + ) + endif utils = executable('test_utils', ['test_utils.c', 'tests.c'], dependencies: build_dependencies + test_dependencies,