@@ -17,27 +17,7 @@ import (
17
17
"time"
18
18
)
19
19
20
- func skipTraceTestsIfNeeded (t * testing.T ) {
21
- switch runtime .GOOS {
22
- case "solaris" :
23
- t .Skip ("skipping: solaris timer can go backwards (https://golang.org/issue/8976)" )
24
- case "darwin" :
25
- switch runtime .GOARCH {
26
- case "arm" , "arm64" :
27
- // TODO(rsc): What does this have to do with the trace tests?
28
- // There is no forking here.
29
- t .Skipf ("skipping on %s/%s, cannot fork" , runtime .GOOS , runtime .GOARCH )
30
- }
31
- }
32
-
33
- switch runtime .GOARCH {
34
- case "arm" :
35
- t .Skip ("skipping: arm tests fail with 'failed to parse trace' (https://golang.org/issue/9725)" )
36
- }
37
- }
38
-
39
20
func TestTraceStartStop (t * testing.T ) {
40
- skipTraceTestsIfNeeded (t )
41
21
buf := new (bytes.Buffer )
42
22
if err := Start (buf ); err != nil {
43
23
t .Fatalf ("failed to start tracing: %v" , err )
@@ -54,7 +34,6 @@ func TestTraceStartStop(t *testing.T) {
54
34
}
55
35
56
36
func TestTraceDoubleStart (t * testing.T ) {
57
- skipTraceTestsIfNeeded (t )
58
37
Stop ()
59
38
buf := new (bytes.Buffer )
60
39
if err := Start (buf ); err != nil {
@@ -68,7 +47,6 @@ func TestTraceDoubleStart(t *testing.T) {
68
47
}
69
48
70
49
func TestTrace (t * testing.T ) {
71
- skipTraceTestsIfNeeded (t )
72
50
buf := new (bytes.Buffer )
73
51
if err := Start (buf ); err != nil {
74
52
t .Fatalf ("failed to start tracing: %v" , err )
@@ -101,8 +79,6 @@ func parseTrace(t *testing.T, r io.Reader) ([]*trace.Event, map[uint64]*trace.GD
101
79
}
102
80
103
81
func TestTraceStress (t * testing.T ) {
104
- skipTraceTestsIfNeeded (t )
105
-
106
82
var wg sync.WaitGroup
107
83
done := make (chan bool )
108
84
@@ -236,8 +212,6 @@ func TestTraceStress(t *testing.T) {
236
212
// Do a bunch of various stuff (timers, GC, network, etc) in a separate goroutine.
237
213
// And concurrently with all that start/stop trace 3 times.
238
214
func TestTraceStressStartStop (t * testing.T ) {
239
- skipTraceTestsIfNeeded (t )
240
-
241
215
defer runtime .GOMAXPROCS (runtime .GOMAXPROCS (8 ))
242
216
outerDone := make (chan bool )
243
217
@@ -375,13 +349,6 @@ func TestTraceStressStartStop(t *testing.T) {
375
349
}
376
350
377
351
func TestTraceFutileWakeup (t * testing.T ) {
378
- // The test generates a full-load of futile wakeups on channels,
379
- // and ensures that the trace is consistent after their removal.
380
- skipTraceTestsIfNeeded (t )
381
- if runtime .GOOS == "linux" && runtime .GOARCH == "ppc64le" {
382
- t .Skip ("test is unreliable; issue #10512" )
383
- }
384
-
385
352
buf := new (bytes.Buffer )
386
353
if err := Start (buf ); err != nil {
387
354
t .Fatalf ("failed to start tracing: %v" , err )
0 commit comments