mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
Deactivate unit test for setBusyTimeout() not supported before SQLite 3.7.15
- sqlite3 3.7.9-2ubuntu1 of Ubuntu 12.04 used by Travis CI
This commit is contained in:
parent
acaed41465
commit
59ceff2ec2
@ -72,6 +72,7 @@ TEST(Database, inMemory) {
|
|||||||
} // Close an destroy DB
|
} // Close an destroy DB
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SQLITE_VERSION_NUMBER >= 3007015 // first version with PRAGMA busy_timeout
|
||||||
TEST(Database, busyTimeout) {
|
TEST(Database, busyTimeout) {
|
||||||
// Create a new database
|
// Create a new database
|
||||||
SQLite::Database db(":memory:");
|
SQLite::Database db(":memory:");
|
||||||
@ -86,6 +87,7 @@ TEST(Database, busyTimeout) {
|
|||||||
db.setBusyTimeout(0);
|
db.setBusyTimeout(0);
|
||||||
EXPECT_EQ(0, db.execAndGet("PRAGMA busy_timeout").getInt());
|
EXPECT_EQ(0, db.execAndGet("PRAGMA busy_timeout").getInt());
|
||||||
}
|
}
|
||||||
|
#endif // SQLITE_VERSION_NUMBER >= 3007015
|
||||||
|
|
||||||
TEST(Database, exec) {
|
TEST(Database, exec) {
|
||||||
// Create a new database
|
// Create a new database
|
||||||
|
Loading…
x
Reference in New Issue
Block a user