]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vboxsnapshotxmltest: Don't write to a file in abs_srcdir
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Jul 2014 13:23:36 +0000 (15:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 1 Jul 2014 14:46:29 +0000 (16:46 +0200)
commit7315189ec063e7bae5c58a469991827b47d9a333
tree0066a9305054a5d2c9726e88a40b306c14dc7378
parente5f5805f62dad36a7c6ba273f9187c0d6f0c3d29
vboxsnapshotxmltest: Don't write to a file in abs_srcdir

In the test, the snapshot XML is written into a file that's located
under:

  abs_srcdir/vboxsnapshotxmldata/testResult.vbox

However, the abs_srcdir doesn't have to be necessarily writable. It
should have been abs_builddir instead. Moreover, the label in the func
creating the file is called 'fail' while it fulfils the duty of
'cleanup' label.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/vboxsnapshotxmltest.c