Skip to content

Commit 59ceff2

Browse files
committed
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
1 parent acaed41 commit 59ceff2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Database_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ TEST(Database, inMemory) {
7272
} // Close an destroy DB
7373
}
7474

75+
#if SQLITE_VERSION_NUMBER >= 3007015 // first version with PRAGMA busy_timeout
7576
TEST(Database, busyTimeout) {
7677
// Create a new database
7778
SQLite::Database db(":memory:");
@@ -86,6 +87,7 @@ TEST(Database, busyTimeout) {
8687
db.setBusyTimeout(0);
8788
EXPECT_EQ(0, db.execAndGet("PRAGMA busy_timeout").getInt());
8889
}
90+
#endif // SQLITE_VERSION_NUMBER >= 3007015
8991

9092
TEST(Database, exec) {
9193
// Create a new database

0 commit comments

Comments
 (0)