Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NoHelperGoroutines (0.36 sec)

  1. src/runtime/testdata/testprog/deadlock.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    	"runtime/debug"
    	"time"
    )
    
    func init() {
    	registerInit("InitDeadlock", InitDeadlock)
    	registerInit("NoHelperGoroutines", NoHelperGoroutines)
    
    	register("SimpleDeadlock", SimpleDeadlock)
    	register("LockedDeadlock", LockedDeadlock)
    	register("LockedDeadlock2", LockedDeadlock2)
    	register("GoexitDeadlock", GoexitDeadlock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 27 20:44:24 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    }
    
    func TestNoHelperGoroutines(t *testing.T) {
    	output := runTestProg(t, "testprog", "NoHelperGoroutines")
    	matches := regexp.MustCompile(`goroutine [0-9]+ \[`).FindAllStringSubmatch(output, -1)
    	if len(matches) != 1 || matches[0][0] != "goroutine 1 [" {
    		t.Fatalf("want to see only goroutine 1, see:\n%s", output)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top