summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqlthread
diff options
context:
space:
mode:
authorBill King <bill.king@nokia.com>2009-04-01 04:09:00 (GMT)
committerBill King <bill.king@nokia.com>2009-04-01 04:09:00 (GMT)
commit831d2742b7c41924f052acd81620e8bfc58afde7 (patch)
treef85e0b0749f934ba0955a85ec89eebfa37a345e9 /tests/auto/qsqlthread
parentba8c15b71b006ddb5c74f0c97288d98541221328 (diff)
downloadQt-831d2742b7c41924f052acd81620e8bfc58afde7.zip
Qt-831d2742b7c41924f052acd81620e8bfc58afde7.tar.gz
Qt-831d2742b7c41924f052acd81620e8bfc58afde7.tar.bz2
DB Autotest cleanup
Make db autotest data set generation more consistent, slightly faster. Also, add ability to easily generate a set of a single databases entries worth of criteria to test.
Diffstat (limited to 'tests/auto/qsqlthread')
-rw-r--r--tests/auto/qsqlthread/tst_qsqlthread.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/auto/qsqlthread/tst_qsqlthread.cpp b/tests/auto/qsqlthread/tst_qsqlthread.cpp
index 94e0f98..d871be4 100644
--- a/tests/auto/qsqlthread/tst_qsqlthread.cpp
+++ b/tests/auto/qsqlthread/tst_qsqlthread.cpp
@@ -286,10 +286,14 @@ tst_QSqlThread::~tst_QSqlThread()
{
}
-void tst_QSqlThread::generic_data()
+void tst_QSqlThread::generic_data(const QString& engine)
{
- if (dbs.fillTestTable() == 0)
- QSKIP("No database drivers are available in this Qt configuration", SkipAll);
+ if ( dbs.fillTestTable(engine) == 0 ) {
+ if(engine.isEmpty())
+ QSKIP( "No database drivers are available in this Qt configuration", SkipAll );
+ else
+ QSKIP( (QString("No database drivers of type %1 are available in this Qt configuration").arg(engine)).toLocal8Bit(), SkipAll );
+ }
}
void tst_QSqlThread::dropTestTables()