- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 285 for goexits (0.13 sec)
-
src/cmd/go/testdata/script/test_example_goexit.txt
stdout '(?s)--- PASS.*--- FAIL.*' stdout 'panic: test executed panic\(nil\) or runtime\.Goexit' -- go.mod -- module examplegoexit go 1.16 -- example_test.go -- package main import ( "fmt" "runtime" ) func ExamplePass() { fmt.Println("pass") // Output: // pass } func ExampleGoexit() { runtime.Goexit() // Output:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 403 bytes - Viewed (0) -
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) -
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) -
test/fixedbugs/issue8158.go
go f2(c) <-c } func f1(done chan bool) { defer func() { recover() done <- true runtime.Goexit() // left stack-allocated Panic struct on gp->panic stack }() panic("p") } func f2(done chan bool) { defer func() { recover() done <- true runtime.Goexit() }() time.Sleep(10 * time.Millisecond) // overwrote Panic struct with Timer struct
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 767 bytes - Viewed (0) -
test/fixedbugs/bug286.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
test/fixedbugs/issue5963.go
defer func() { c <- 0 }() go func() { os.Exit(<-c) }() runtime.Goexit() } func main() { } /* Before fix: invalid m->locked = 2 fatal error: internal lockOSThread error goroutine 2 [runnable]: runtime.MHeap_Scavenger() /Users/rsc/g/go/src/pkg/runtime/mheap.c:438 runtime.goexit() /Users/rsc/g/go/src/pkg/runtime/proc.c:1313 created by runtime.main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 929 bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_sum_lookup.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 28 17:19:14 UTC 2021 - 859 bytes - Viewed (0) -
src/os/exec/exec_test.go
// immediately) to unexpectedly block on reading from the pipe. var ( nHangs = runtime.GOMAXPROCS(0) nExits = runtime.GOMAXPROCS(0) hangs, exits sync.WaitGroup ) hangs.Add(nHangs) exits.Add(nExits) // ready is done when the goroutines have done as much work as possible to // prepare to create subprocesses. It isn't strictly necessary for the test,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
tests/util/leak/check.go
// goroutines for test "testing.Main(", "testing.tRunner(", "testing.(*M).", // go runtime "runtime.goexit", "created by runtime.gc", "runtime.MHeap_Scavenger", "signal.signal_recv", "sigterm.handler", "runtime_mcall", // created by leak checker "created by runtime/trace.Start", "interestingGoroutines",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 20 10:22:38 UTC 2023 - 6.9K bytes - Viewed (0) -
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)