]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: utils: Add virTestLoadFilePath helper
authorPeter Krempa <pkrempa@redhat.com>
Tue, 25 Jul 2017 13:11:31 +0000 (15:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 27 Jul 2017 07:34:49 +0000 (09:34 +0200)
commitd492b19259dc96a9233022bbcdb628f2e5fbdea6
tree2c6a5413350604d03b40236378bc18fa13fcad8d
parent3c60388591303c2e13867044696fed455fc6718b
tests: utils: Add virTestLoadFilePath helper

This new helper loads and returns a file from 'abs_srcdir'. By using
variable arguments for the function, it's not necessary to format the
path separately in the test cases.

Reviewed-by: Eric Blake <eblake@redhat.com>
tests/testutils.c
tests/testutils.h