summaryrefslogtreecommitdiff
path: root/telepathy-logger/log-store-xml.c
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2015-04-20 13:38:07 +0200
committerDebarshi Ray <debarshir@freedesktop.org>2015-04-20 14:07:48 +0200
commit1d35d990cc2c925a2842cf121f4ff3a3ce5c195a (patch)
tree6195da8298a3b3bf805537bab5b73656d24883a6 /telepathy-logger/log-store-xml.c
parent89ad4c941816b7b09c20c7111086d965d87861e7 (diff)
downloadtelepathy-logger-1d35d990cc2c925a2842cf121f4ff3a3ce5c195a.tar.gz
tests: Add a test for log-iter-xml/get-events
... to cover files with invalid XML. Since WARNINGs interfere with the test, we suppress them when testmode is on. https://bugs.freedesktop.org/show_bug.cgi?id=40675 https://bugs.freedesktop.org/show_bug.cgi?id=89595
Diffstat (limited to 'telepathy-logger/log-store-xml.c')
-rw-r--r--telepathy-logger/log-store-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-logger/log-store-xml.c b/telepathy-logger/log-store-xml.c
index 7ba27ed..be881d0 100644
--- a/telepathy-logger/log-store-xml.c
+++ b/telepathy-logger/log-store-xml.c
@@ -1369,7 +1369,8 @@ log_store_xml_get_events_for_file (TplLogStoreXml *self,
doc = xmlCtxtReadFile (ctxt, filename, NULL, XML_PARSE_RECOVER);
if (!doc)
{
- g_warning ("Failed to parse file:'%s'", filename);
+ if (!self->priv->test_mode)
+ g_warning ("Failed to parse file:'%s'", filename);
xmlFreeParserCtxt (ctxt);
return;
}