]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: skip test-bpf only when we're 100% sure it's run in containers
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 30 May 2019 01:29:50 +0000 (03:29 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 30 May 2019 03:11:35 +0000 (06:11 +0300)
This is just a follow-up to https://github.com/systemd/systemd/pull/12617.

src/test/test-bpf.c

index f4d0c731f111bacd7dbeab34f61740b5d0dfe1c7..90ab15c5499f50c3358e1b09db85dc2049bcd82b 100644 (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);