Commit 0c7a024d authored by gwenn's avatar gwenn

Introduce testing.Skip.

parent b95174b7
...@@ -132,7 +132,7 @@ func TestQueryOnly(t *testing.T) { ...@@ -132,7 +132,7 @@ func TestQueryOnly(t *testing.T) {
func TestApplicationID(t *testing.T) { func TestApplicationID(t *testing.T) {
if VersionNumber() < 3007017 { if VersionNumber() < 3007017 {
return t.Skipf("SQLite version too old (%d < %d)", VersionNumber(), 3007017)
} }
db := open(t) db := open(t)
...@@ -155,7 +155,7 @@ func TestApplicationID(t *testing.T) { ...@@ -155,7 +155,7 @@ func TestApplicationID(t *testing.T) {
func TestForeignKeyCheck(t *testing.T) { func TestForeignKeyCheck(t *testing.T) {
if VersionNumber() < 3007016 { if VersionNumber() < 3007016 {
return t.Skipf("SQLite version too old (%d < %d)", VersionNumber(), 3007016)
} }
db := open(t) db := open(t)
...@@ -200,7 +200,7 @@ func TestForeignKeyCheck(t *testing.T) { ...@@ -200,7 +200,7 @@ func TestForeignKeyCheck(t *testing.T) {
func TestMMapSize(t *testing.T) { func TestMMapSize(t *testing.T) {
if VersionNumber() < 3007017 { if VersionNumber() < 3007017 {
return t.Skipf("SQLite version too old (%d < %d)", VersionNumber(), 3007017)
} }
f, err := ioutil.TempFile("", "gosqlite.db.") f, err := ioutil.TempFile("", "gosqlite.db.")
checkNoError(t, err, "couldn't create temp file: %s") checkNoError(t, err, "couldn't create temp file: %s")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment