From 276309001a6a5c2c1a62e8d0336cae9ebf65e213 Mon Sep 17 00:00:00 2001 From: Bill King Date: Tue, 13 Oct 2009 12:01:39 +1000 Subject: This autotest doesn't make sense for in-memory databases. --- tests/auto/qsqltablemodel/tst_qsqltablemodel.cpp | 2 ++ 1 file changed, 2 insertions(+) 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")); -- cgit v0.12