]> err.no Git - systemd/commitdiff
add test for garbage collector
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jan 2010 19:51:58 +0000 (20:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jan 2010 19:51:58 +0000 (20:51 +0100)
manager.c
test2/b.service
test2/f.service [new file with mode: 0644]

index c71bceb4846ecb1ba5276c360d717af259af1b27..da2d4334746881728ebebdb3d77c1fb5efd510d7 100644 (file)
--- a/manager.c
+++ b/manager.c
@@ -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);
                 }
         }
index b096e0d3fb97107f471418cef0b95175cbe5cd7d..ca946073d37c276cf7c0de2eefb0b5040d5402f1 100644 (file)
@@ -1,2 +1,3 @@
 [Meta]
 Description=B
+Wants=f.service
diff --git a/test2/f.service b/test2/f.service
new file mode 100644 (file)
index 0000000..d0b30ef
--- /dev/null
@@ -0,0 +1,2 @@
+[Meta]
+Description=F