This is a pretty specific hack, so let's just define it close to the one
place where it is used.
return code == CLD_DUMPED ? CLD_KILLED : code;
}
+_unused_ static bool is_run_on_travis_ci(void) {
+ /* https://docs.travis-ci.com/user/environment-variables#default-environment-variables */
+ return streq_ptr(getenv("TRAVIS"), "true");
+}
+
static void wait_for_service_finish(Manager *m, Unit *unit) {
Service *service = NULL;
usec_t ts;
return cg_attach_everywhere(supported, cgroup_subroot, 0, NULL, NULL);
}
-
-/* https://docs.travis-ci.com/user/environment-variables#default-environment-variables */
-bool is_run_on_travis_ci(void) {
- return streq_ptr(getenv("TRAVIS"), "true");
-}
Copyright © 2013 Holger Hans Peter Freyther
***/
-#include <stdbool.h>
-
#include "sd-daemon.h"
#define TEST_REQ_RUNNING_SYSTEMD(x) \
}
int enter_cgroup_subroot(void);
-
-bool is_run_on_travis_ci(void);