Skip to content

Commit 0d12c93

Browse files
committed
asm: stackcheck of examples in test
1 parent 5a9018f commit 0d12c93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asm/compiler_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ func TestExamplePrograms(t *testing.T) {
179179

180180
func compileExample(t *testing.T, exampleDir string, file string) string {
181181
c := New(os.DirFS(exampleDir))
182+
c.SetStackCheck(true)
182183
output := c.CompileFile(file)
183184
for _, err := range c.ErrorsAndWarnings() {
184-
t.Log(err)
185+
t.Error(err)
185186
}
186187
if c.Failed() {
187188
t.Error("compilation failed:")

0 commit comments

Comments
 (0)