summaryrefslogtreecommitdiff
path: root/tests/auto/sql/kernel
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 14:53:08 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 23:08:32 +0200
commit5f31da62bb45303b9a0f37a98c018aa710809158 (patch)
treebcbde440d581b77ae9ccb45eb2b4d2b8916f7df9 /tests/auto/sql/kernel
parented8429495e32537e5f426f5feb5a3b7eb0dca102 (diff)
downloadqtbase-5f31da62bb45303b9a0f37a98c018aa710809158.tar.gz
Disable warnings for tests using QSqlQuery assignment
Copying is deprecated as of 14f9f00fdb2dc428610c08e3d9d03e38e9602166. Pick-to: 6.1 Change-Id: I235d45ff6769a29a4fdfd888c20dd9fe2fe81346 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'tests/auto/sql/kernel')
-rw-r--r--tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
index ad7baeb9a9..d43a922ec8 100644
--- a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
@@ -1478,7 +1478,10 @@ void tst_QSqlQuery::forwardOnly()
QVERIFY( q.at() == QSql::AfterLastRow );
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
QSqlQuery q2 = q;
+QT_WARNING_POP
QVERIFY( q2.isForwardOnly() );
@@ -3875,6 +3878,8 @@ void tst_QSqlQuery::QTBUG_21884()
*/
void tst_QSqlQuery::QTBUG_16967()
{
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
QSqlQuery q2;
QFETCH(QString, dbName);
{
@@ -3920,6 +3925,7 @@ void tst_QSqlQuery::QTBUG_16967()
db.close();
QCOMPARE(db.lastError().type(), QSqlError::NoError);
}
+QT_WARNING_POP
}
/**