From c22476192540e899f6f281171e6a93a3846fc891 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Thu, 13 Jun 2024 13:23:54 +0200 Subject: sys/targets: don't attempt to run unit tests on unsupported TestOS arch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $ go test -v -count=1 -run=TestCover/32 ./pkg/runtest/ === RUN TestCover === PAUSE TestCover === CONT TestCover === RUN TestCover/32 run_test.go:121: skipping due to broken compiler: gcc: error: unrecognized command-line option ‘-m32’; did you mean ‘-m31’? --- PASS: TestCover (0.21s) --- SKIP: TestCover/32 (0.00s) PASS ok github.com/google/syzkaller/pkg/runtest 0.318s Signed-off-by: Alexander Egorenkov --- sys/targets/targets.go | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/targets') diff --git a/sys/targets/targets.go b/sys/targets/targets.go index d4743c28f..2fce53255 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -634,6 +634,7 @@ func init() { } host := List[goos][arch] if host == nil { + target.BrokenCompiler = fmt.Sprintf("TestOS %v unsupported", target.PtrSize*8) continue } target.CCompiler = host.CCompiler -- cgit mrf-deployment