summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestlog.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-08-25 15:43:01 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-28 12:17:45 +0200
commitcb57d36f4559faf63acdca2cfb7b35431b959164 (patch)
tree6605f7c9c28fdd9cc2bb7c2c729697d47143f05b /src/testlib/qtestlog.cpp
parent24b99f819cdd78d3e0feee4847e69d62e41fd7ef (diff)
Make QTest::qWarn() use __FILE__ and __LINE__.
This change makes QTest::qWarn() consistent with similar testlib functions, which take __FILE__ and __LINE__. Change-Id: I12977cb30672899ab38877b4a656f0cc0c7ea02c Reviewed-on: http://codereview.qt-project.org/3559 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qtestlog.cpp')
-rw-r--r--src/testlib/qtestlog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testlib/qtestlog.cpp b/src/testlib/qtestlog.cpp
index f3b416d3d1..acd1a49d44 100644
--- a/src/testlib/qtestlog.cpp
+++ b/src/testlib/qtestlog.cpp
@@ -385,12 +385,12 @@ bool QTestLog::loggerUsingStdout()
return QTest::loggerUsingStdout;
}
-void QTestLog::warn(const char *msg)
+void QTestLog::warn(const char *msg, const char *file, int line)
{
QTEST_ASSERT(msg);
if (QTest::TestLoggers::loggerCount() > 0)
- QTest::TestLoggers::addMessage(QAbstractTestLogger::Warn, msg);
+ QTest::TestLoggers::addMessage(QAbstractTestLogger::Warn, msg, file, line);
}
void QTestLog::info(const char *msg, const char *file, int line)