]> xenbits.xensource.com Git - libvirt.git/commit
storage: better tests of lookup
authorEric Blake <eblake@redhat.com>
Fri, 13 Jun 2014 15:23:10 +0000 (09:23 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 16 Jun 2014 15:33:57 +0000 (09:33 -0600)
commitb10a0e9198b8482d43584644e091d9a4b42ff57c
tree60882a7b9f1d6c0dc28234741b81c4b772e5f6d2
parent54597c56984d24566c3c1d955a271954bf48d9fc
storage: better tests of lookup

Add some more tests of what happens when we restrict a lookup
to begin at a point in the middle of a chain.  In particular,
we want to ensure that a parent is not found when starting at
the child.  This commit also demonstrates that we have a slight
difference in behavior on what parent we report when filtering
is in effect; as the determination of the parent affects the
code in block commit, exposing this in the testsuite will help
justify changes in future patches that tweak the semantics of
what lookups are allowed.

* tests/virstoragetest.c (testStorageLookup): Test user input.
(TEST_LOOKUP_TARGET): Add parameter.
(mymain): Add lookup tests.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/virstoragetest.c