diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-10-07 11:42:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-07 06:39:30 +0200 |
commit | 413b40eaf7911bc28671afa5997ceca58af36b29 (patch) | |
tree | 0cf9f3106a367279e7eaabbb04516cfa59135770 /tests | |
parent | 435d21383ca8862f7077f6c9fc86fabc29a553de (diff) |
Remove redundant qWarning's.
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp | 4 | ||||
-rw-r--r-- | tests/auto/sql/models/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp b/tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp index 6e47c24078..bb77eebd1b 100644 --- a/tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp +++ b/tests/auto/sql/kernel/qsqldriver/tst_qsqldriver.cpp @@ -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) diff --git a/tests/auto/sql/models/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp b/tests/auto/sql/models/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp index c133b8efa0..5bfff0dc32 100644 --- a/tests/auto/sql/models/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp +++ b/tests/auto/sql/models/qsqlrelationaltablemodel/tst_qsqlrelationaltablemodel.cpp @@ -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) |