]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: skip test-execute on TravisCI under ASan
authorEvgeny Vereshchagin <evvers@ya.ru>
Fri, 23 Nov 2018 17:26:02 +0000 (18:26 +0100)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sat, 24 Nov 2018 03:05:23 +0000 (06:05 +0300)
Unfortunately, f5f9a580dd4a3cf487b didn't help much and now
the next subtest gets stuck from time to time. Let's skip
test-execute altogether so as not to bother anybody with
spurious failures.

https://github.com/systemd/systemd/issues/10696 is still open.
Everybody is welcome to share ideas :-)

src/test/test-execute.c

index 9d35e4e00a5fa3ed67c1826c16e851cd7f69fe82..a8e9d9c2a1f87c78c9c326b4be95f4916b40e494 100644 (file)
@@ -616,13 +616,6 @@ static void test_exec_ambientcapabilities(Manager *m) {
                 return;
         }
 
-#ifdef __SANITIZE_ADDRESS__
-        if (is_run_on_travis_ci()) {
-                log_notice("Skipping %s, see https://github.com/systemd/systemd/issues/10696", __func__);
-                return;
-        }
-#endif
-
         test(m, "exec-ambientcapabilities.service", 0, CLD_EXITED);
         test(m, "exec-ambientcapabilities-merge.service", 0, CLD_EXITED);
 
@@ -766,6 +759,13 @@ int main(int argc, char *argv[]) {
 
         test_setup_logging(LOG_DEBUG);
 
+#ifdef __SANITIZE_ADDRESS__
+        if (is_run_on_travis_ci()) {
+                log_notice("Running on TravisCI under ASan, skipping, see https://github.com/systemd/systemd/issues/10696");
+                return EXIT_TEST_SKIP;
+        }
+#endif
+
         (void) unsetenv("USER");
         (void) unsetenv("LOGNAME");
         (void) unsetenv("SHELL");