]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/crash_cgo_test.go
runtime: add execution tracer v2 behind GOEXPERIMENT=exectracer2
[gostls13.git] / src / runtime / crash_cgo_test.go
index 5d0750e8f45c82a6757771e64a6ddc3e06d3a778..304f1a75545c78adaf179a72057585bc46f69879 100644 (file)
@@ -8,6 +8,7 @@ package runtime_test
 
 import (
        "fmt"
+       "internal/goexperiment"
        "internal/goos"
        "internal/platform"
        "internal/testenv"
@@ -785,6 +786,9 @@ func TestCgoTraceParser(t *testing.T) {
        case "plan9", "windows":
                t.Skipf("no pthreads on %s", runtime.GOOS)
        }
+       if goexperiment.ExecTracer2 {
+               t.Skip("skipping test that is covered elsewhere for the new execution tracer")
+       }
        output := runTestProg(t, "testprogcgo", "CgoTraceParser")
        want := "OK\n"
        ErrTimeOrder := "ErrTimeOrder\n"
@@ -801,6 +805,9 @@ func TestCgoTraceParserWithOneProc(t *testing.T) {
        case "plan9", "windows":
                t.Skipf("no pthreads on %s", runtime.GOOS)
        }
+       if goexperiment.ExecTracer2 {
+               t.Skip("skipping test that is covered elsewhere for the new execution tracer")
+       }
        output := runTestProg(t, "testprogcgo", "CgoTraceParser", "GOMAXPROCS=1")
        want := "OK\n"
        ErrTimeOrder := "ErrTimeOrder\n"