- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for T_callsexit (0.1 sec)
-
src/runtime/ehooks_test.go
expected: "blub blix", }, { mode: "panics", musthave: []string{ "fatal error: exit hook invoked panic", "main.testPanics", }, }, { mode: "callsexit", musthave: []string{ "fatal error: exit hook invoked exit", }, }, { mode: "exit2", expected: "", }, } exe, err := buildTestProg(t, "testexithooks", bmode)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/runtime/testdata/testexithooks/testexithooks.go
func main() { flag.Parse() switch *modeflag { case "simple": testSimple() case "goodexit": testGoodExit() case "badexit": testBadExit() case "panics": testPanics() case "callsexit": testHookCallsExit() case "exit2": testExit2() default: panic("unknown mode") } } func testSimple() { f1 := func() { println("foo") } f2 := func() { println("bar") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0)