add test for garbage collector

This commit is contained in:
Lennart Poettering 2010-01-20 20:51:58 +01:00
parent 302d0040d2
commit 9ea024f6b5
3 changed files with 6 additions and 1 deletions

View File

@ -315,6 +315,8 @@ static void transaction_collect_garbage(Manager *m) {
if (j->object_list)
continue;
log_debug("Garbage collecting job %s", name_id(j->name));
transaction_delete_job(m, j);
again = true;
break;
@ -504,7 +506,7 @@ void manager_transaction_unlink_job(Manager *m, Job *j) {
job_dependency_free(j->object_list);
if (other) {
log_debug("Deleting job %s dependency of job %s", name_id(other->name), name_id(j->name));
log_debug("Deleting job %s as dependency of job %s", name_id(other->name), name_id(j->name));
transaction_delete_job(m, other);
}
}

View File

@ -1,2 +1,3 @@
[Meta]
Description=B
Wants=f.service

2
test2/f.service Normal file
View File

@ -0,0 +1,2 @@
[Meta]
Description=F