diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-05-07 04:09:08 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2009-05-07 04:56:06 (GMT) |
commit | 56335c9891230de3b87d401110b83656381729ac (patch) | |
tree | c06fa4ea973c5d81f1161c748560066eae4eccee /src/testlib/qtestxunitstreamer.h | |
parent | 014b5d404b19ad3d81686ba490eb7dd93efee573 (diff) | |
download | Qt-56335c9891230de3b87d401110b83656381729ac.zip Qt-56335c9891230de3b87d401110b83656381729ac.tar.gz Qt-56335c9891230de3b87d401110b83656381729ac.tar.bz2 |
Fixed qDebugs within tests being written as "error" tags in the
xunitxml testlog.
`error' in xunit causes many xunit processing tools to consider the test
as failing. This is different semantics from native testlib XML, where
a qDebug is considered a message and not a failure.
Change it to put qDebugs under the "system-err" tag when using xunitxml
to retain semantic compatibility with testlib XML.
Autotest: tst_selftests
Diffstat (limited to 'src/testlib/qtestxunitstreamer.h')
-rw-r--r-- | src/testlib/qtestxunitstreamer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtestxunitstreamer.h b/src/testlib/qtestxunitstreamer.h index 1ce9576..a6554af 100644 --- a/src/testlib/qtestxunitstreamer.h +++ b/src/testlib/qtestxunitstreamer.h @@ -16,7 +16,7 @@ class QTestXunitStreamer: public QTestBasicStreamer void formatStart(const QTestElement *element = 0, char *formatted = 0) const; void formatEnd(const QTestElement *element = 0, char *formatted = 0) const; void formatAfterAttributes(const QTestElement *element = 0, char *formatted = 0) const; - void formatAttributes(const QTestElementAttribute *attribute = 0, char *formatted = 0) const; + void formatAttributes(const QTestElement *element = 0, const QTestElementAttribute *attribute = 0, char *formatted = 0) const; void output(QTestElement *element) const; void outputElements(QTestElement *element, bool isChildElement = false) const; |