ctags: Skip TestJSON if universal-ctags is missing
Change-Id: I29d423489e3932d280ff0db7cf6c2b78d6da3596
diff --git a/ctags/json_test.go b/ctags/json_test.go
index bd74240..4a6891d 100644
--- a/ctags/json_test.go
+++ b/ctags/json_test.go
@@ -15,11 +15,16 @@
package ctags
import (
+ "os/exec"
"reflect"
"testing"
)
func TestJSON(t *testing.T) {
+ if _, err := exec.LookPath("universal-ctags"); err != nil {
+ t.Skip(err)
+ }
+
p, err := newProcess("universal-ctags")
if err != nil {
t.Fatal("newProcess", err)