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.
This commit is contained in:
Ayke van Laethem
2020-09-04 01:34:12 +02:00
committed by Ron Evans
parent 1096596b69
commit b713001313
6 changed files with 72 additions and 14 deletions
+5
View File
@@ -39,4 +39,9 @@ func libc_free(ptr unsafe.Pointer) {
free(ptr)
}
//go:linkname syscall_Exit syscall.Exit
func syscall_Exit(code int) {
abort()
}
const baremetal = true