mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 16:33:40 +00:00
test: check for errors when globbing test packages
This commit is contained in:
@@ -23,6 +23,9 @@ func TestCompiler(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dirMatches, err := filepath.Glob(TESTDATA + "/*/main.go")
|
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 {
|
if len(matches) == 0 || len(dirMatches) == 0 {
|
||||||
t.Fatal("no test files found")
|
t.Fatal("no test files found")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user