Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for goexit0 (0.1 sec)

  1. src/cmd/go/testdata/script/test_fuzz_cleanup.txt

    # Cleanup should run after F.Skip.
    go test -run=FuzzTargetSkip
    stdout cleanup
    
    # Cleanup should run after F.Fatal.
    ! go test -run=FuzzTargetFatal
    stdout cleanup
    
    # Cleanup should run after an unexpected runtime.Goexit.
    ! go test -run=FuzzTargetGoexit
    stdout cleanup
    
    # Cleanup should run after panic.
    ! go test -run=FuzzTargetPanic
    stdout cleanup
    
    # Cleanup should run in fuzz function on seed corpus.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. test/fixedbugs/bug206.go

    main·f+0x26 /home/gri/go/test/bugs/bug206.go:16
    	main·f(0x2b9560, 0x0)
    main·main+0xc3 /home/gri/go/test/bugs/bug206.go:23
    	main·main()
    mainstart+0xf /home/gri/go/src/pkg/runtime/amd64/asm.s:55
    	mainstart()
    goexit /home/gri/go/src/pkg/runtime/proc.c:133
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 31 17:36:45 UTC 2018
    - 1K bytes
    - Viewed (0)
  3. test/fixedbugs/bug286.go

    	runtime.panic(0x0, 0x24e0a0)
    main.main+0xef /home/gri/go1/test/bugs/bug286.go:76
    	main.main()
    mainstart+0xf /home/gri/go1/src/pkg/runtime/amd64/asm.s:60
    	mainstart()
    goexit /home/gri/go1/src/pkg/runtime/proc.c:145
    	goexit()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  4. src/testing/panic_test.go

    	testCases := []struct {
    		desc  string
    		flags []string
    		want  string
    	}{
    		{
    			desc:  "Issue 48502: call runtime.Goexit in t.Cleanup after panic",
    			flags: []string{"-test.run=^TestGoexitInCleanupAfterPanicHelper$"},
    			want: `panic: die
    	panic: test executed panic(nil) or runtime.Goexit`,
    		},
    		{
    			desc:  "Issue 48515: call t.Run in t.Cleanup should trigger panic",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:49:24 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. src/cmd/internal/objabi/funcid.go

    	"corostart":          abi.FuncID_corostart,
    	"debugCallV2":        abi.FuncID_debugCallV2,
    	"gcBgMarkWorker":     abi.FuncID_gcBgMarkWorker,
    	"rt0_go":             abi.FuncID_rt0_go,
    	"goexit":             abi.FuncID_goexit,
    	"gogo":               abi.FuncID_gogo,
    	"gopanic":            abi.FuncID_gopanic,
    	"handleAsyncEvent":   abi.FuncID_handleAsyncEvent,
    	"main":               abi.FuncID_runtime_main,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 21:33:59 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. src/go/doc/testdata/testing.go

    	c.Fail()
    
    	// Calling runtime.Goexit will exit the goroutine, which
    	// will run the deferred functions in this goroutine,
    	// which will eventually run the deferred lines in tRunner,
    	// which will signal to the test loop that this test is done.
    	//
    	// A previous version of this code said:
    	//
    	//	c.duration = ...
    	//	c.signal <- c.self
    	//	runtime.Goexit()
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue11256.go

    			var buf [1024]byte
    			buf[0]++
    			for atomic.LoadInt32(&done) == 0 {
    				runtime.Gosched()
    			}
    			atomic.StoreInt32(&done, 0)
    			// Exit without unwinding stack barriers.
    			runtime.Goexit()
    		}()
    
    		// Generate some garbage.
    		x[i] = make([]byte, 1024*1024)
    
    		// Give GC some time to install stack barriers in the G.
    		time.Sleep(50 * time.Microsecond)
    		atomic.StoreInt32(&done, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 29 15:02:30 UTC 2015
    - 1.1K bytes
    - Viewed (0)
  8. src/runtime/crash_test.go

    	want := "no goroutines (main called runtime.Goexit) - deadlock!"
    	if !strings.Contains(output, want) {
    		t.Fatalf("output:\n%s\n\nwant output containing: %s", output, want)
    	}
    }
    
    func TestGoexitDefer(t *testing.T) {
    	c := make(chan struct{})
    	go func() {
    		defer func() {
    			r := recover()
    			if r != nil {
    				t.Errorf("non-nil recover during Goexit")
    			}
    			c <- struct{}{}
    		}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_fuzz_mutate_fail.txt

    }
    
    func FuzzNilPanic(f *testing.F) {
    	if isWorker() {
    		panic(nil)
    	}
    	f.Fuzz(func(*testing.T, []byte) {})
    }
    
    func FuzzGoexit(f *testing.F) {
    	if isWorker() {
    		runtime.Goexit()
    	}
    	f.Fuzz(func(*testing.T, []byte) {})
    }
    
    func FuzzExit(f *testing.F) {
    	if isWorker() {
    		os.Exit(99)
    	}
    	f.Fuzz(func(*testing.T, []byte) {})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/runtime/testdata/testprogcgo/pprof.go

    // For testing purposes it pretends that all CPU hits in C code are in cpuHog.
    // Issue #29034: At least 2 frames are required to verify all frames are captured
    // since runtime/pprof ignores the runtime.goexit base frame if it exists.
    void pprofCgoTraceback(void* parg) {
    	struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg);
    	arg->buf[0] = (uintptr_t)(cpuHog) + 0x10;
    	arg->buf[1] = (uintptr_t)(cpuHog2) + 0x4;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 12 19:45:58 UTC 2021
    - 1.7K bytes
    - Viewed (0)
Back to top