From 222c4c75b17fd3f3d4d32dee9bdb9f9b4b433a5b Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Wed, 12 Dec 2018 14:26:33 +0100 Subject: [PATCH] test: check for errors when globbing test packages --- main_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main_test.go b/main_test.go index 53125ae7..3afb45d8 100644 --- a/main_test.go +++ b/main_test.go @@ -23,6 +23,9 @@ func TestCompiler(t *testing.T) { } dirMatches, err := filepath.Glob(TESTDATA + "/*/main.go") + if err != nil { + t.Fatal("could not read test packages:", err) + } if len(matches) == 0 || len(dirMatches) == 0 { t.Fatal("no test files found") }