Merge pull request #4310 from magalilemes/parse-config-file

tests: fix parse_config_file seccomp test
This commit is contained in:
Stéphane Graber 2023-05-16 13:37:40 -04:00 committed by GitHub
commit 883311259d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}