diff options
author | Ayke van Laethem <[email protected]> | 2018-12-12 14:26:33 +0100 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2019-02-05 17:11:08 +0100 |
commit | 222c4c75b17fd3f3d4d32dee9bdb9f9b4b433a5b (patch) | |
tree | ea3722f5ea7357ed3786a5173c89d784bb14f9b2 /main_test.go | |
parent | 5a509f5bfeb3abef9246dbece6826540b73c5cf8 (diff) | |
download | tinygo-222c4c75b17fd3f3d4d32dee9bdb9f9b4b433a5b.tar.gz tinygo-222c4c75b17fd3f3d4d32dee9bdb9f9b4b433a5b.zip |
test: check for errors when globbing test packages
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go index 53125ae72..3afb45d8d 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") } |