Skip to content

Commit

Permalink
sys/targets: don't attempt to run unit tests on unsupported TestOS arch
Browse files Browse the repository at this point in the history
$ 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>
  • Loading branch information
eaibmz committed Jun 13, 2024
1 parent 40d7e9d commit bc594ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/targets/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc594ff

Please sign in to comment.