for reasons, sometimes libxml2 is not compile, and all tests will fail. detect that.

This commit is contained in:
Enno Rehling 2015-04-06 17:49:40 +02:00
parent 3ee07a795d
commit 168fa02e68
1 changed files with 2 additions and 2 deletions

View File

@ -6,5 +6,5 @@ rules=''
if config.rules then
rules = config.rules .. '/'
end
read_xml(confdir .. rules .. 'config.xml', confdir .. rules .. 'catalog.xml')
eressea.config.read(rules .. 'config.json', confdir)
assert(0 == read_xml(confdir .. rules .. 'config.xml', confdir .. rules .. 'catalog.xml'), "could not load XML data, did you compile with LIBXML2 ?")
assert(0 == eressea.config.read(rules .. 'config.json', confdir), "could not read JSON data")