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:
Sébastien Rombauts 2015-05-01 12:48:04 +02:00
parent acaed41465
commit 59ceff2ec2

View File

@ -72,6 +72,7 @@ TEST(Database, inMemory) {
} // Close an destroy DB
}
#if SQLITE_VERSION_NUMBER >= 3007015 // first version with PRAGMA busy_timeout
TEST(Database, busyTimeout) {
// Create a new database
SQLite::Database db(":memory:");
@ -86,6 +87,7 @@ TEST(Database, busyTimeout) {
db.setBusyTimeout(0);
EXPECT_EQ(0, db.execAndGet("PRAGMA busy_timeout").getInt());
}
#endif // SQLITE_VERSION_NUMBER >= 3007015
TEST(Database, exec) {
// Create a new database