@@ -24,10 +24,22 @@ import (
24
24
"golang.org/x/telemetry/internal/mmap"
25
25
)
26
26
27
- func TestBasic (t * testing.T ) {
28
- if runtime .GOOS == "openbsd" || runtime .GOOS == "js" || runtime .GOOS == "wasip1" {
27
+ func skipIfUnsupportedPlatform (t * testing.T ) {
28
+ t .Helper ()
29
+ switch runtime .GOOS {
30
+ case "openbsd" , "js" , "wasip1" , "solaris" , "android" :
31
+ // BUGS: #60614 - openbsd, #60967 - android , #60968 - solaris #60970 - solaris #60971 - wasip1)
29
32
t .Skip ("broken for openbsd etc" )
30
33
}
34
+ if runtime .GOARCH == "386" {
35
+ // BUGS: #60615 #60692 #60965 #60967
36
+ t .Skip ("broken for GOARCH 386" )
37
+ }
38
+ }
39
+
40
+ func TestBasic (t * testing.T ) {
41
+ skipIfUnsupportedPlatform (t )
42
+
31
43
t .Logf ("GOOS %s GARCH %s" , runtime .GOOS , runtime .GOARCH )
32
44
setup (t )
33
45
defer restore ()
@@ -75,9 +87,7 @@ func close(f *file) {
75
87
}
76
88
77
89
func TestLarge (t * testing.T ) {
78
- if runtime .GOOS == "openbsd" || runtime .GOOS == "js" || runtime .GOOS == "wasip1" {
79
- t .Skip ("broken for openbsd etc" )
80
- }
90
+ skipIfUnsupportedPlatform (t )
81
91
t .Logf ("GOOS %s GARCH %s" , runtime .GOOS , runtime .GOARCH )
82
92
setup (t )
83
93
defer restore ()
@@ -123,6 +133,8 @@ func TestLarge(t *testing.T) {
123
133
}
124
134
125
135
func TestRepeatedNew (t * testing.T ) {
136
+ skipIfUnsupportedPlatform (t )
137
+
126
138
t .Logf ("GOOS %s GARCH %s" , runtime .GOOS , runtime .GOARCH )
127
139
setup (t )
128
140
defer restore ()
@@ -161,6 +173,8 @@ func hexDump(data []byte) string {
161
173
}
162
174
163
175
func TestNewFile (t * testing.T ) {
176
+ skipIfUnsupportedPlatform (t )
177
+
164
178
t .Logf ("GOOS %s GARCH %s" , runtime .GOOS , runtime .GOARCH )
165
179
setup (t )
166
180
defer restore ()
@@ -226,6 +240,8 @@ func TestNewFile(t *testing.T) {
226
240
}
227
241
228
242
func TestRotate (t * testing.T ) {
243
+ skipIfUnsupportedPlatform (t )
244
+
229
245
t .Logf ("GOOS %s GARCH %s" , runtime .GOOS , runtime .GOARCH )
230
246
year , month , day := time .Now ().Date ()
231
247
now := time .Date (year , month , day , 0 , 0 , 0 , 0 , time .UTC )
@@ -281,6 +297,7 @@ func TestRotate(t *testing.T) {
281
297
}
282
298
283
299
func TestStack (t * testing.T ) {
300
+ skipIfUnsupportedPlatform (t )
284
301
t .Logf ("GOOS %s GARCH %s" , runtime .GOOS , runtime .GOARCH )
285
302
setup (t )
286
303
defer restore ()
0 commit comments