1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // The file contains tests that cannot run under race detector for some reason.
19 var newOSProcDone bool
22 func newOSProcCreated() {
26 // Can't be run with -race because it inserts calls into newOSProcCreated()
27 // that require a valid G/M.
28 func TestNewOSProc0(t *testing.T) {
29 runtime.NewOSProc0(0x800000, unsafe.Pointer(abi.FuncPCABIInternal(newOSProcCreated)))
30 check := time.NewTicker(100 * time.Millisecond)
32 end := time.After(5 * time.Second)
40 t.Fatalf("couldn't create new OS process")