Remove redundant qWarning's.
authorJason McDonald <jason.mcdonald@nokia.com>
Fri, 7 Oct 2011 01:42:28 +0000 (11:42 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Oct 2011 04:39:30 +0000 (06:39 +0200)
The removed warnings just repeat information that is already in the
QSKIP's that immediately follow the warnings.

Change-Id: Id13158487e8075aab8a8f48955303edde3f4af63
Reviewed-on: http://codereview.qt-project.org/6194
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp
tests/auto/sql/models/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp

index 6e47c24..bb77eeb 100644 (file)
@@ -75,10 +75,8 @@ private slots:
 void tst_QSqlDriver::initTestCase_data()
 {
     dbs.open();
-    if (dbs.fillTestTable() == 0) {
-        qWarning("NO DATABASES");
+    if (dbs.fillTestTable() == 0)
         QSKIP("No database drivers are available in this Qt configuration", SkipAll);
-    }
 }
 
 void tst_QSqlDriver::recreateTestTables(QSqlDatabase db)
index c133b8e..5bfff0d 100644 (file)
@@ -102,10 +102,8 @@ private:
 void tst_QSqlRelationalTableModel::initTestCase_data()
 {
     dbs.open();
-    if (dbs.fillTestTable() == 0) {
-        qWarning("NO DATABASES");
+    if (dbs.fillTestTable() == 0)
         QSKIP("No database drivers are available in this Qt configuration", SkipAll);
-    }
 }
 
 void tst_QSqlRelationalTableModel::recreateTestTables(QSqlDatabase db)