]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virschematest: Access the right directory containing XMLs
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jun 2016 09:04:04 +0000 (11:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jun 2016 09:04:04 +0000 (11:04 +0200)
commit6895068d6d869c54df8efc8cbc69b14c8a58831d
tree8108148feed60a8e24a015b753c7a7c22ad852f9
parentcf0974fbca02f06cec975b06cd7ba45a9ee4efd3
virschematest: Access the right directory containing XMLs

So the story goes like this. The testSchemaDirs() function is
called with: a) the schema file, b) list of the directories that
contains XMLs documents that should be checked against the schema
file from a). However, the directories in the list are really
just their names and it's up to testSchemaDirs to construct the
absolute path and call testSchemaDir() which then does the actual
validation. The absolute path is constructed, but never actually
used (maybe due to a typo). Thus a VPATH build is broken.

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