test: ensure presets are evaluated in order
authorAlex Crawford <alex.crawford@coreos.com>
Sun, 1 May 2016 16:32:17 +0000 (09:32 -0700)
committerAlex Crawford <alex.crawford@coreos.com>
Sun, 1 May 2016 16:40:39 +0000 (09:40 -0700)
commit622d37058487ce955337ca9d843d92a67cd6a609
tree9017313c13f4517cc45f17001e5c32e59fbed49e
parentd544d1a4d596106ffc7df3bbc4eee695e4e1ef70
test: ensure presets are evaluated in order

This tests to make sure that preset patterns are checked in the order
they were declared. Both "prefix-1.service" and "prefix-2.service" match
against two rules: their exact name (which enables the service) and
"prefix-*.service" (which disables the service). Because of the
ordering, only "prefix-1.service" should be enabled.
src/test/test-install-root.c