diff options
| author | Alexander Egorenkov <eaibmz@gmail.com> | 2024-06-13 13:23:54 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-06-13 13:03:06 +0000 |
| commit | c22476192540e899f6f281171e6a93a3846fc891 (patch) | |
| tree | 6c30cd7f5ddf219194d9fd83401e07c56c4ceef3 /sys/targets | |
| parent | af14338446028bc58d040a678f63772e9c456e74 (diff) | |
sys/targets: don't attempt to run unit tests on unsupported TestOS arch
$ 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 <eaibmz@gmail.com>
Diffstat (limited to 'sys/targets')
| -rw-r--r-- | sys/targets/targets.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
