aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-09-04 01:34:12 +0200
committerRon Evans <[email protected]>2020-09-24 21:17:26 +0200
commitb71300131395260ea154274ee395016a32672122 (patch)
treecadfd6526f26df090f654a3997e677546972dde7 /src/testing/testing.go
parent1096596b692bd1cbec9b58336f31313d9faaeb0f (diff)
downloadtinygo-b71300131395260ea154274ee395016a32672122.tar.gz
tinygo-b71300131395260ea154274ee395016a32672122.zip
test: support non-host tests
For example, for running tests with -target=wasm or -target=cortex-m-qemu. It looks at the output to determine whether tests were successful in the absence of a status code.
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index b1e33de8b..e9b50b0c8 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -195,6 +195,8 @@ func (m *M) Run() int {
if failures > 0 {
fmt.Printf("exit status %d\n", failures)
fmt.Println("FAIL")
+ } else {
+ fmt.Println("PASS")
}
return failures
}