summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHonglei Zhang <honglei.zhang@nokia.com>2011-12-07 09:56:45 (GMT)
committerHonglei Zhang <honglei.zhang@nokia.com>2011-12-07 10:02:31 (GMT)
commit75155a7345dab9033552a8cd9c2f2655965ef83c (patch)
tree31f67bb4bbbfe2ed01ade9676b071450908161d9 /tests
parentc59567a7a2b45ecde7836e09b1a5cd020b2fad4a (diff)
downloadQt-75155a7345dab9033552a8cd9c2f2655965ef83c.zip
Qt-75155a7345dab9033552a8cd9c2f2655965ef83c.tar.gz
Qt-75155a7345dab9033552a8cd9c2f2655965ef83c.tar.bz2
Revert "Fix sqlite driver memory eating due to close failure"
This reverts commit 9a5fb6bd5f0fb3b37897bf722e4cc1673309623c. The mentioned fix has caused failure in qtcreator. Thus it has to be reverted and new fix for the memory leak will be made.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsqlquery/tst_qsqlquery.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/auto/qsqlquery/tst_qsqlquery.cpp b/tests/auto/qsqlquery/tst_qsqlquery.cpp
index 652a82e..3cbdb63 100644
--- a/tests/auto/qsqlquery/tst_qsqlquery.cpp
+++ b/tests/auto/qsqlquery/tst_qsqlquery.cpp
@@ -215,8 +215,6 @@ private slots:
void QTBUG_14132();
void QTBUG_21884_data() { generic_data("QSQLITE"); }
void QTBUG_21884();
- void QTBUG_16967_data() { generic_data("QSQLITE"); }
- void QTBUG_16967(); //clean close
void sqlite_constraint_data() { generic_data("QSQLITE"); }
void sqlite_constraint();
@@ -3152,53 +3150,6 @@ void tst_QSqlQuery::QTBUG_21884()
}
}
-/**
- * This test case test sqlite driver close function. Sqlite driver should close cleanly
- * even if there is still outstanding prepared statement.
- */
-void tst_QSqlQuery::QTBUG_16967()
-{
- QFETCH(QString, dbName);
- {
- QSqlDatabase db = QSqlDatabase::database(dbName);
- CHECK_DATABASE(db);
- db.close();
- QCOMPARE(db.lastError().type(), QSqlError::NoError);
- }
- {
- QSqlDatabase db = QSqlDatabase::database(dbName);
- CHECK_DATABASE(db);
- QSqlQuery q(db);
- q.prepare("CREATE TABLE t1 (id INTEGER PRIMARY KEY, str TEXT);");
- db.close();
- QCOMPARE(db.lastError().type(), QSqlError::NoError);
- }
- {
- QSqlDatabase db = QSqlDatabase::database(dbName);
- CHECK_DATABASE(db);
- QSqlQuery q(db);
- q.prepare("CREATE TABLE t1 (id INTEGER PRIMARY KEY, str TEXT);");
- q.exec();
- db.close();
- QCOMPARE(db.lastError().type(), QSqlError::NoError);
- }
- {
- QSqlDatabase db = QSqlDatabase::database(dbName);
- CHECK_DATABASE(db);
- QSqlQuery q(db);
- q.exec("INSERT INTO t1 (id, str) VALUES(1, \"test1\");");
- db.close();
- QCOMPARE(db.lastError().type(), QSqlError::NoError);
- }
- {
- QSqlDatabase db = QSqlDatabase::database(dbName);
- CHECK_DATABASE(db);
- QSqlQuery q(db);
- q.exec("SELECT * FROM t1;");
- db.close();
- QCOMPARE(db.lastError().type(), QSqlError::NoError);
- }
-}
void tst_QSqlQuery::oraOCINumber()
{