]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: interleave virstoragetest structs
authorEric Blake <eblake@redhat.com>
Sat, 5 Apr 2014 17:34:32 +0000 (11:34 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 8 Apr 2014 19:32:03 +0000 (13:32 -0600)
commit3486133356da762e45f8ef2d2bb19031dc4451f9
tree1fc7fca817dfaa0cac28276150eb301572863ea3
parentfcc7d0ed3a8e24d79b1f46872580cc2f97d01bdf
conf: interleave virstoragetest structs

As I add more tests, it's getting harder to follow the split between
a struct in one place and a test using the struct in another.
Interleaving the tests makes changes more localized, and also makes
debugging easier when a test goes wrong during my refactoring work.

* tests/virstoragetest.c (mymain): Modify structs as we go, rather
than up-front.
(testStorageChain): Make failure debugging easier.

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