tests: skip test-bpf only when we're 100% sure it's run in containers

This is just a follow-up to https://github.com/systemd/systemd/pull/12617.
This commit is contained in:
Evgeny Vereshchagin
2019-05-30 06:11:35 +03:00
parent 0813a5efb2
commit 6bd1457afe
+1 -1
View File
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
test_setup_logging(LOG_DEBUG);
if (detect_container())
if (detect_container() > 0)
return log_tests_skipped("test-bpf fails inside LXC and Docker containers: https://github.com/systemd/systemd/issues/9666");
assert_se(getrlimit(RLIMIT_MEMLOCK, &rl) >= 0);