summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-03-20 12:26:42 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-03-23 13:09:00 +0100
commit3e5ba7ff7d3bff308faffbb52de0f6eece825541 (patch)
treef0d4adcbc1cff8a89fc7584d72c8cfd0df6549a2 /tests/auto/sql
parente4efd566379ff390b94b8001594d2f0f0d84c0de (diff)
tst_sqlquery: Skip datetime test if no database drivers are available
Change-Id: I4a4619f2edc3c82fc37605d54e9bedc36abd7388 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/sql')
-rw-r--r--tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
index 3aa23c504d..e15ac4faf3 100644
--- a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp
@@ -4537,6 +4537,9 @@ void tst_QSqlQuery::QTBUG_57138()
void tst_QSqlQuery::dateTime_data()
{
+ if (dbs.dbNames.isEmpty())
+ QSKIP( "No database drivers are available in this Qt configuration");
+
QTest::addColumn<QString>("dbName");
QTest::addColumn<QString>("tableName");
QTest::addColumn<QString>("createTableString");