diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-03 03:01:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-03 03:01:29 +0200 |
commit | 35374c804d252b949c4bba7604fcf3430013595e (patch) | |
tree | 0b57c5bd0e0edefbb45d23a18491797aa1f847ee /src | |
parent | e1d680ad556bc15b6e5821746a5fbc42a736aaf4 (diff) |
test: update test-engine.c to work again
Diffstat (limited to 'src')
-rw-r--r-- | src/test-engine.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test-engine.c b/src/test-engine.c index 27e16f3..eb17f58 100644 --- a/src/test-engine.c +++ b/src/test-engine.c @@ -36,9 +36,9 @@ int main(int argc, char *argv[]) { assert_se(manager_new(MANAGER_INIT, false, &m) >= 0); printf("Load1:\n"); - assert_se(manager_load_unit(m, "a.service", NULL, &a) == 0); - assert_se(manager_load_unit(m, "b.service", NULL, &b) == 0); - assert_se(manager_load_unit(m, "c.service", NULL, &c) == 0); + assert_se(manager_load_unit(m, "a.service", NULL, &a) >= 0); + assert_se(manager_load_unit(m, "b.service", NULL, &b) >= 0); + assert_se(manager_load_unit(m, "c.service", NULL, &c) >= 0); manager_dump_units(m, stdout, "\t"); printf("Test1: (Trivial)\n"); @@ -47,8 +47,8 @@ int main(int argc, char *argv[]) { printf("Load2:\n"); manager_clear_jobs(m); - assert_se(manager_load_unit(m, "d.service", NULL, &d) == 0); - assert_se(manager_load_unit(m, "e.service", NULL, &e) == 0); + assert_se(manager_load_unit(m, "d.service", NULL, &d) >= 0); + assert_se(manager_load_unit(m, "e.service", NULL, &e) >= 0); manager_dump_units(m, stdout, "\t"); printf("Test2: (Cyclic Order, Unfixable)\n"); @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) { manager_dump_jobs(m, stdout, "\t"); printf("Load3:\n"); - assert_se(manager_load_unit(m, "g.service", NULL, &g) == 0); + assert_se(manager_load_unit(m, "g.service", NULL, &g) >= 0); manager_dump_units(m, stdout, "\t"); printf("Test5: (Colliding transaction, fail)\n"); @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) { manager_dump_jobs(m, stdout, "\t"); printf("Load4:\n"); - assert_se(manager_load_unit(m, "h.service", NULL, &h) == 0); + assert_se(manager_load_unit(m, "h.service", NULL, &h) >= 0); manager_dump_units(m, stdout, "\t"); printf("Test10: (Unmeargable job type of auxiliary job, fail)\n"); |