summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsqltablemodel
diff options
context:
space:
mode:
authorBill King <bking@trolltech.com>2009-10-13 02:01:39 (GMT)
committerBill King <bking@trolltech.com>2009-10-13 03:21:50 (GMT)
commit276309001a6a5c2c1a62e8d0336cae9ebf65e213 (patch)
treea3501d7234fb8fec150b7e6b90107b739e573bf7 /tests/auto/qsqltablemodel
parent99e7dcf532b1c84aa64a7ab9af9a5fd14fd64033 (diff)
downloadQt-276309001a6a5c2c1a62e8d0336cae9ebf65e213.zip
Qt-276309001a6a5c2c1a62e8d0336cae9ebf65e213.tar.gz
Qt-276309001a6a5c2c1a62e8d0336cae9ebf65e213.tar.bz2
This autotest doesn't make sense for in-memory databases.
Diffstat (limited to 'tests/auto/qsqltablemodel')
-rw-r--r--tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp b/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp
index 49e087f..5405cb6 100644
--- a/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp
+++ b/tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp
@@ -897,6 +897,8 @@ void tst_QSqlTableModel::sqlite_attachedDatabase()
QFETCH(QString, dbName);
QSqlDatabase db = QSqlDatabase::database(dbName);
CHECK_DATABASE(db);
+ if(db.databaseName() == ":memory:")
+ QSKIP(":memory: database, skipping test", SkipSingle);
QSqlDatabase attachedDb = QSqlDatabase::cloneDatabase(db, db.driverName() + QLatin1String("attached"));
attachedDb.setDatabaseName(db.databaseName()+QLatin1String("attached.dat"));