Skip to content

Commit 1b1851b

Browse files
committed
Fix flaky test, fixes #362
1 parent f0dd7b1 commit 1b1851b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zz-inliner_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"context"
99
"os/exec"
1010
"regexp"
11+
"runtime"
1112
"testing"
1213
"time"
1314
)
@@ -20,6 +21,10 @@ import (
2021
// The functions to check are listed in the funcs slice. If any function is
2122
// missing the inlining message, the test fails.
2223
func TestInlineBitSet256Functions(t *testing.T) {
24+
if runtime.GOARCH != "amd64" && runtime.GOARCH != "arm64" {
25+
t.Skip("Test only for 64-bit amd64 or arm64")
26+
}
27+
2328
// List of functions expected to be inlined
2429
funcs := []string{
2530
"bitset.(*BitSet256).Set",

0 commit comments

Comments
 (0)