make interp timeout configurable from command line

This commit is contained in:
Damian Gryski
2022-08-04 15:26:44 -07:00
committed by Ron Evans
parent a4ee98e0e1
commit 0b77e92c50
7 changed files with 34 additions and 28 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"strconv"
"strings"
"testing"
"time"
"tinygo.org/x/go-llvm"
)
@@ -52,7 +53,7 @@ func runTest(t *testing.T, pathPrefix string) {
defer mod.Dispose()
// Perform the transform.
err = Run(mod, false)
err = Run(mod, 10*time.Minute, false)
if err != nil {
if err, match := err.(*Error); match {
println(err.Error())