mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 10:43:35 +08:00
add test for garbage collector
This commit is contained in:
parent
302d0040d2
commit
9ea024f6b5
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -1,2 +1,3 @@
|
||||
[Meta]
|
||||
Description=B
|
||||
Wants=f.service
|
||||
|
2
test2/f.service
Normal file
2
test2/f.service
Normal file
@ -0,0 +1,2 @@
|
||||
[Meta]
|
||||
Description=F
|
Loading…
Reference in New Issue
Block a user