]> xenbits.xensource.com Git - libvirt.git/commit
snapshot: test domainsnapshot indentation
authorEric Blake <eblake@redhat.com>
Thu, 22 Sep 2011 20:29:00 +0000 (14:29 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 20 Oct 2011 22:02:16 +0000 (16:02 -0600)
commit27b3b303d966a7dff3bf7219e253dbefd814f97d
tree00387bd8fcd0b5b83b74b1b7d60458f761cd1075
parent9cba3927684f7fe46872fae74843087139a4cca2
snapshot: test domainsnapshot indentation

Add a test for the simple parts of my indentation changes, and
fix the fallout.

* tests/domainsnapshotxml2xmltest.c: New test.
* tests/Makefile.am (domainsnapshotxml2xmltest_SOURCES): Build it.
* src/conf/domain_conf.c (virDomainSnapshotDefFormat): Avoid NULL
deref, match documented order.
* src/conf/domain_conf.h (virDomainSnapshotDefFormat): Add const.
* tests/domainsnapshotxml2xmlout/all_parameters.xml: Tweak output.
* tests/domainsnapshotxml2xmlout/disk_snapshot.xml: Likewise.
* tests/domainsnapshotxml2xmlout/full_domain.xml: Likewise.
* .gitignore: Exempt new binary.
.gitignore
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/Makefile.am
tests/domainsnapshotxml2xmlout/all_parameters.xml
tests/domainsnapshotxml2xmlout/disk_snapshot.xml
tests/domainsnapshotxml2xmlout/full_domain.xml
tests/domainsnapshotxml2xmltest.c [new file with mode: 0644]