From 511c3aad12748f1e4bd5b0cad8084796e31a9413 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 2 Aug 2014 10:45:43 -0700 Subject: [PATCH] sqlite: skip test instead of failing when not compiled in Change-Id: If7ef7308cdb7b6aec5490ec332d4dace7b7565a0 --- pkg/sorted/sqlite/sqlitekv_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/sorted/sqlite/sqlitekv_test.go b/pkg/sorted/sqlite/sqlitekv_test.go index 4387c1476..570f082ea 100644 --- a/pkg/sorted/sqlite/sqlitekv_test.go +++ b/pkg/sorted/sqlite/sqlitekv_test.go @@ -28,6 +28,9 @@ import ( ) func TestSQLiteKV(t *testing.T) { + if !CompiledIn() { + t.Skip(ErrNotCompiled.Error()) + } tmpDir, err := ioutil.TempDir("", "camlistore-sqlitekv_test") if err != nil { t.Fatal(err)