test: check for errors when globbing test packages

Этот коммит содержится в:
Ayke van Laethem 2018-12-12 14:26:33 +01:00
родитель 5a509f5bfe
коммит 222c4c75b1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED

Просмотреть файл

@ -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")
}