diff options
author | Ayke van Laethem <[email protected]> | 2020-09-04 01:34:12 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2020-09-24 21:17:26 +0200 |
commit | b71300131395260ea154274ee395016a32672122 (patch) | |
tree | cadfd6526f26df090f654a3997e677546972dde7 /src/testing/testing.go | |
parent | 1096596b692bd1cbec9b58336f31313d9faaeb0f (diff) | |
download | tinygo-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.go | 2 |
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 } |