summaryrefslogtreecommitdiff
path: root/src/test/test-engine.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-16 11:19:43 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-19 20:14:05 +0200
commite0a3da1fd2b832929e210dab4a84c91b8b984102 (patch)
tree6cef1b8280814cc04fb408b9f0310ff1cefc9a65 /src/test/test-engine.c
parentd75b31837c93dbb9b20067719026ad0fb7cdfadd (diff)
downloadsystemd-e0a3da1fd2b832929e210dab4a84c91b8b984102.tar.gz
Make test_run into a flags field and disable generators again
Now generators are only run in systemd --test mode, where this makes most sense (how are you going to test what would happen otherwise?). Fixes #6842. v2: - rename test_run to test_run_flags
Diffstat (limited to 'src/test/test-engine.c')
-rw-r--r--src/test/test-engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-engine.c b/src/test/test-engine.c
index b5d3da0d38..6916f838d4 100644
--- a/src/test/test-engine.c
+++ b/src/test/test-engine.c
@@ -42,7 +42,7 @@ int main(int argc, char *argv[]) {
/* prepare the test */
assert_se(set_unit_path(get_testdata_dir("")) >= 0);
assert_se(runtime_dir = setup_fake_runtime_dir());
- r = manager_new(UNIT_FILE_USER, true, &m);
+ r = manager_new(UNIT_FILE_USER, MANAGER_TEST_RUN_MINIMAL, &m);
if (MANAGER_SKIP_TEST(r)) {
log_notice_errno(r, "Skipping test: manager_new: %m");
return EXIT_TEST_SKIP;