mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 16:52:32 +00:00
tests: fix parse_config_file seccomp test
Link: https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1980218 Check if seccomp is enabled before throwing error. Signed-off-by: Magali Lemes <magali.lemes@canonical.com>
This commit is contained in:
parent
70e42b0f93
commit
8575ffeb7f
@ -576,7 +576,14 @@ int main(int argc, char *argv[])
|
||||
goto non_test_error;
|
||||
}
|
||||
|
||||
if (set_get_compare_clear_save_load(c, "lxc.seccomp.profile", "/some/seccomp/file", tmpf, true) < 0) {
|
||||
ret = set_get_compare_clear_save_load(c, "lxc.seccomp.profile", "/some/seccomp/file", tmpf, true);
|
||||
|
||||
#if HAVE_SECCOMP
|
||||
if (ret < 0)
|
||||
#else
|
||||
if (ret == 0)
|
||||
#endif
|
||||
{
|
||||
lxc_error("%s\n", "lxc.seccomp.profile");
|
||||
goto non_test_error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user