Skip to content

Commit 0dbe9cf

Browse files
fix
Change-Id: Ifd359fa79741fad8de20232ddb6d8fc2f87b1148
1 parent 3a64775 commit 0dbe9cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/reflect/all_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"go/token"
1313
"internal/abi"
1414
"internal/goarch"
15+
"internal/race"
1516
"internal/testenv"
1617
"io"
1718
"math"
@@ -370,7 +371,7 @@ func TestMapIterSet(t *testing.T) {
370371
}
371372
}
372373

373-
if testenv.OptimizationOff() {
374+
if testenv.OptimizationOff() || race.Enabled {
374375
return // no inlining with the noopt builder
375376
}
376377

0 commit comments

Comments
 (0)