diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-10-16 17:05:30 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-10-16 17:05:30 (GMT) |
commit | efd505dd4a85e696a650e29da829504cf01bb5d0 (patch) | |
tree | 82f53cb378a1d7bed936dc996eddecebda834ec8 /Swiften/Parser | |
parent | a8705f484480854816bc6807f1c56b0cf987faff (diff) | |
download | swift-contrib-efd505dd4a85e696a650e29da829504cf01bb5d0.zip swift-contrib-efd505dd4a85e696a650e29da829504cf01bb5d0.tar.bz2 |
Fix test failures.
Diffstat (limited to 'Swiften/Parser')
-rw-r--r-- | Swiften/Parser/LibXMLParser.cpp | 6 | ||||
-rw-r--r-- | Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Swiften/Parser/LibXMLParser.cpp b/Swiften/Parser/LibXMLParser.cpp index 91ff72b..f43ed00 100644 --- a/Swiften/Parser/LibXMLParser.cpp +++ b/Swiften/Parser/LibXMLParser.cpp @@ -26,6 +26,12 @@ static void handleCharacterData(void* client, const xmlChar* data, int len) { } static void handleError(void*, const char*, ... ) { + /* + va_list args; + va_start(args, m); + vfprintf(stdout, m, args); + va_end(args); + */ } static void handleWarning(void*, const char*, ... ) { diff --git a/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp b/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp index 5a2be8d..81cc207 100644 --- a/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp +++ b/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp @@ -20,9 +20,9 @@ class RawXMLPayloadParserTest : public CppUnit::TestFixture PayloadParserTester parser(&testling); String xml = - "<foo foo-attr=\"foo-val\" xmlns=\"foo-ns\">" - "<bar bar-attr=\"bar-val\" xmlns=\"bar-ns\"/>" - "<baz baz-attr=\"baz-val\" xmlns=\"baz-ns\"/>" + "<foo foo-attr=\"foo-val\" xmlns=\"ns:foo\">" + "<bar bar-attr=\"bar-val\" xmlns=\"ns:bar\"/>" + "<baz baz-attr=\"baz-val\" xmlns=\"ns:baz\"/>" "</foo>"; CPPUNIT_ASSERT(parser.parse(xml)); |