aboutsummaryrefslogtreecommitdiffhomepage
path: root/main_test.go
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-03-30 18:24:18 -0700
committerRon Evans <[email protected]>2023-03-31 09:07:13 +0200
commita2f95d6b87418cc4a75892a43a6a405674aab876 (patch)
tree42cb0c8c2ee4f34a911692a897d80e312f9674e6 /main_test.go
parent698b1f19c6167800af0683a625ce891f3037c867 (diff)
downloadtinygo-a2f95d6b87418cc4a75892a43a6a405674aab876.tar.gz
tinygo-a2f95d6b87418cc4a75892a43a6a405674aab876.zip
main: stuff test runner options into their own struct
Fixes #2406
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main_test.go b/main_test.go
index 4de8fc09c..59254656e 100644
--- a/main_test.go
+++ b/main_test.go
@@ -425,7 +425,7 @@ func TestTest(t *testing.T) {
defer out.Close()
opts := targ.opts
- passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/pass", out, out, &opts, false, false, false, "", "", "", false, "")
+ passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/pass", out, out, &opts, "")
if err != nil {
t.Errorf("test error: %v", err)
}
@@ -446,7 +446,7 @@ func TestTest(t *testing.T) {
defer out.Close()
opts := targ.opts
- passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/fail", out, out, &opts, false, false, false, "", "", "", false, "")
+ passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/fail", out, out, &opts, "")
if err != nil {
t.Errorf("test error: %v", err)
}
@@ -473,7 +473,7 @@ func TestTest(t *testing.T) {
var output bytes.Buffer
opts := targ.opts
- passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/nothing", io.MultiWriter(&output, out), out, &opts, false, false, false, "", "", "", false, "")
+ passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/nothing", io.MultiWriter(&output, out), out, &opts, "")
if err != nil {
t.Errorf("test error: %v", err)
}
@@ -497,7 +497,7 @@ func TestTest(t *testing.T) {
defer out.Close()
opts := targ.opts
- passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/builderr", out, out, &opts, false, false, false, "", "", "", false, "")
+ passed, err := Test("github.com/tinygo-org/tinygo/tests/testing/builderr", out, out, &opts, "")
if err == nil {
t.Error("test did not error")
}