diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-06 17:03:12 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-02-06 17:06:26 -0500 |
commit | fa3cd7394c227ad38c5c09b2bc2d035e7fb14a76 (patch) | |
tree | 7997bb01ba0ee451384c3915f8b7f5f378ac1a9a /src/test/test-sched-prio.c | |
parent | 539ad707db5361e7fbe0076615a92456fd34f7df (diff) |
tests: run manager in session mode
False positives pop up otherwise.
FAIL: test-unit-name (exit: 134)
================================
Failed to open /dev/tty0: Permission denied
Failed to create root cgroup hierarchy: Permission denied
Assertion 'manager_new(SYSTEMD_SYSTEM, &m) == 0' failed at src/test/test-unit-name.c:125, function test_unit_printf(). Aborting.
Diffstat (limited to 'src/test/test-sched-prio.c')
-rw-r--r-- | src/test/test-sched-prio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c index 29235e8347..63f7ebda08 100644 --- a/src/test/test-sched-prio.c +++ b/src/test/test-sched-prio.c @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) { /* prepare the test */ assert_se(set_unit_path(TEST_DIR) >= 0); - assert_se(manager_new(SYSTEMD_SYSTEM, &m) >= 0); + assert_se(manager_new(SYSTEMD_USER, &m) >= 0); assert_se(manager_startup(m, serial, fdset) >= 0); /* load idle ok */ |