diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-23 01:52:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-23 01:52:57 +0100 |
commit | 5cb5a6ffc33667c93e9bc3572534dcaa684046e3 (patch) | |
tree | 51e8b6260d56027c4d610ff6db5882737101a809 /test-job-type.c | |
parent | cd2dbd7df9f1b8c46386b2898523aec3dd4578fd (diff) | |
download | systemd-5cb5a6ffc33667c93e9bc3572534dcaa684046e3.tar.gz |
first attempt in implementinging execution logic
Diffstat (limited to 'test-job-type.c')
-rw-r--r-- | test-job-type.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test-job-type.c b/test-job-type.c index db5c329e13..62f04fdf13 100644 --- a/test-job-type.c +++ b/test-job-type.c @@ -13,16 +13,16 @@ int main(int argc, char*argv[]) { for (a = 0; a < _JOB_TYPE_MAX; a++) for (b = 0; b < _JOB_TYPE_MAX; b++) { - if (!job_type_mergeable(a, b)) + if (!job_type_is_mergeable(a, b)) printf("Not mergeable: %s + %s\n", job_type_to_string(a), job_type_to_string(b)); for (c = 0; c < _JOB_TYPE_MAX; c++) { /* Verify transitivity of mergeability * of job types */ - assert(!job_type_mergeable(a, b) || - !job_type_mergeable(b, c) || - job_type_mergeable(a, c)); + assert(!job_type_is_mergeable(a, b) || + !job_type_is_mergeable(b, c) || + job_type_is_mergeable(a, c)); d = a; if (job_type_merge(&d, b) >= 0) { @@ -32,14 +32,14 @@ int main(int argc, char*argv[]) { /* Verify that merged entries can be * merged with the same entries they * can be merged with seperately */ - assert(!job_type_mergeable(a, c) || job_type_mergeable(d, c)); - assert(!job_type_mergeable(b, c) || job_type_mergeable(d, c)); + assert(!job_type_is_mergeable(a, c) || job_type_is_mergeable(d, c)); + assert(!job_type_is_mergeable(b, c) || job_type_is_mergeable(d, c)); /* Verify that if a merged * with b is not mergable with * c then either a or b is not * mergeable with c either. */ - assert(job_type_mergeable(d, c) || !job_type_mergeable(a, c) || !job_type_mergeable(b, c)); + assert(job_type_is_mergeable(d, c) || !job_type_is_mergeable(a, c) || !job_type_is_mergeable(b, c)); e = b; if (job_type_merge(&e, c) >= 0) { |