sqlite: skip test instead of failing when not compiled in

Change-Id: If7ef7308cdb7b6aec5490ec332d4dace7b7565a0
This commit is contained in:
Brad Fitzpatrick 2014-08-02 10:45:43 -07:00
parent 1577fc1e56
commit 511c3aad12
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ import (
) )
func TestSQLiteKV(t *testing.T) { func TestSQLiteKV(t *testing.T) {
if !CompiledIn() {
t.Skip(ErrNotCompiled.Error())
}
tmpDir, err := ioutil.TempDir("", "camlistore-sqlitekv_test") tmpDir, err := ioutil.TempDir("", "camlistore-sqlitekv_test")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)