Skip to content

Commit bd5ca22

Browse files
committed
runtime/trace: remove existing Skips
The skips added in CL 12579, based on incorrect time stamps, should be sufficient to identify and exclude all the time-related flakiness on these systems. If there is other flakiness, we want to find out. For #10512. Change-Id: I5b588ac1585b2e9d1d18143520d2d51686b563e3 Reviewed-on: https://go-review.googlesource.com/12746 Reviewed-by: Austin Clements <[email protected]>
1 parent 80c98fa commit bd5ca22

File tree

2 files changed

+1
-34
lines changed

2 files changed

+1
-34
lines changed

src/runtime/trace/trace_stack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
// In particular that we strip bottom uninteresting frames like goexit,
2222
// top uninteresting frames (runtime guts).
2323
func TestTraceSymbolize(t *testing.T) {
24-
skipTraceTestsIfNeeded(t)
2524
testenv.MustHaveExec(t)
25+
2626
buf := new(bytes.Buffer)
2727
if err := Start(buf); err != nil {
2828
t.Fatalf("failed to start tracing: %v", err)

src/runtime/trace/trace_test.go

-33
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,7 @@ import (
1717
"time"
1818
)
1919

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-
3920
func TestTraceStartStop(t *testing.T) {
40-
skipTraceTestsIfNeeded(t)
4121
buf := new(bytes.Buffer)
4222
if err := Start(buf); err != nil {
4323
t.Fatalf("failed to start tracing: %v", err)
@@ -54,7 +34,6 @@ func TestTraceStartStop(t *testing.T) {
5434
}
5535

5636
func TestTraceDoubleStart(t *testing.T) {
57-
skipTraceTestsIfNeeded(t)
5837
Stop()
5938
buf := new(bytes.Buffer)
6039
if err := Start(buf); err != nil {
@@ -68,7 +47,6 @@ func TestTraceDoubleStart(t *testing.T) {
6847
}
6948

7049
func TestTrace(t *testing.T) {
71-
skipTraceTestsIfNeeded(t)
7250
buf := new(bytes.Buffer)
7351
if err := Start(buf); err != nil {
7452
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
10179
}
10280

10381
func TestTraceStress(t *testing.T) {
104-
skipTraceTestsIfNeeded(t)
105-
10682
var wg sync.WaitGroup
10783
done := make(chan bool)
10884

@@ -236,8 +212,6 @@ func TestTraceStress(t *testing.T) {
236212
// Do a bunch of various stuff (timers, GC, network, etc) in a separate goroutine.
237213
// And concurrently with all that start/stop trace 3 times.
238214
func TestTraceStressStartStop(t *testing.T) {
239-
skipTraceTestsIfNeeded(t)
240-
241215
defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(8))
242216
outerDone := make(chan bool)
243217

@@ -375,13 +349,6 @@ func TestTraceStressStartStop(t *testing.T) {
375349
}
376350

377351
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-
385352
buf := new(bytes.Buffer)
386353
if err := Start(buf); err != nil {
387354
t.Fatalf("failed to start tracing: %v", err)

0 commit comments

Comments
 (0)