]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/crash_cgo_test.go
runtime/cgo: store M for C-created thread in pthread key
[gostls13.git] / src / runtime / crash_cgo_test.go
index c6c018ccdf17f29b98e9ac00b714492e18cadfc8..fb34c7fe3e85a80462331b3dab93f60028421973 100644 (file)
@@ -777,3 +777,16 @@ func TestCgoSigfwd(t *testing.T) {
                t.Fatalf("expected %q, but got:\n%s", want, got)
        }
 }
+
+func TestEnsureBindM(t *testing.T) {
+       t.Parallel()
+       switch runtime.GOOS {
+       case "windows", "plan9":
+               t.Skipf("skipping bindm test on %s", runtime.GOOS)
+       }
+       got := runTestProg(t, "testprogcgo", "EnsureBindM")
+       want := "OK\n"
+       if got != want {
+               t.Errorf("expected %q, got %v", want, got)
+       }
+}