summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-10-16 17:05:30 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-10-16 17:05:30 (GMT)
commitefd505dd4a85e696a650e29da829504cf01bb5d0 (patch)
tree82f53cb378a1d7bed936dc996eddecebda834ec8 /Swiften/Parser
parenta8705f484480854816bc6807f1c56b0cf987faff (diff)
downloadswift-contrib-efd505dd4a85e696a650e29da829504cf01bb5d0.zip
swift-contrib-efd505dd4a85e696a650e29da829504cf01bb5d0.tar.bz2
Fix test failures.
Diffstat (limited to 'Swiften/Parser')
-rw-r--r--Swiften/Parser/LibXMLParser.cpp6
-rw-r--r--Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp6
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));