Skip to content

Commit

Permalink
Skip testing APIs that are not available on older winsqlite.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Jul 17, 2021
1 parent 94e3d15 commit 7cb092c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/tests_xunit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ public void test_last_insert_rowid()
[Fact]
public void test_keywords()
{
var version = raw.sqlite3_libversion_number();

if (version < 3024000) return; // Added in 3.24.0: https://sqlite.org/releaselog/3_24_0.html

var n = SQLitePCL.raw.sqlite3_keyword_count();
Assert.True(n > 0);
for (var i=0; i<n; i++)
Expand Down Expand Up @@ -1524,6 +1528,10 @@ public void test_stmt_busy()
[Fact]
public void test_stmt_isexplain()
{
var version = raw.sqlite3_libversion_number();

if (version < 3028000) return; // Added in 3.28.0: https://sqlite.org/releaselog/3_28_0.html

using (sqlite3 db = ugly.open(":memory:"))
{
db.exec("CREATE TABLE foo (x int);");
Expand Down

0 comments on commit 7cb092c

Please sign in to comment.