diff --git a/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp b/tests/auto/sql/kernel/qsqlquery/tst_qsqlquery.cpp index 3aa23c504da..e15ac4faf3c 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("dbName"); QTest::addColumn("tableName"); QTest::addColumn("createTableString");