services: 'instantiate-missing-services' reaches fixed point.
authorLudovic Courtès <ludo@gnu.org>
Fri, 7 Sep 2018 21:00:39 +0000 (23:00 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 7 Sep 2018 21:00:39 +0000 (23:00 +0200)
commit9b6c4355645534d1ae799bfef6761b75ed8b3a41
tree7d36556a55c5daded689ef86e33b3b31a2763070
parent9f1f200c0462d5fa798e4d7b8c3c09294f8bfb95
services: 'instantiate-missing-services' reaches fixed point.

Fixes a bug whereby services indirectly depended on would not be
automatically instantiated.

* gnu/services.scm (instantiate-missing-services): Loop back when the
length of ADJUSTED is greater than that of INSTANCES.
* tests/services.scm ("instantiate-missing-services, indirect"): New test.
gnu/services.scm
tests/services.scm