- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for panicmem (0.14 sec)
-
test/fixedbugs/issue14636.go
if err == nil { log.Fatalf("expected cmd/link to fail") } firstLine := string(bytes.SplitN(out, []byte("\n"), 2)[0]) if strings.HasPrefix(firstLine, "panic") { log.Fatalf("cmd/link panicked:\n%s", out) } if !strings.Contains(firstLine, message) { log.Fatalf("cmd/link output did not include expected message %q: %s", message, firstLine) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.2K bytes - Viewed (0) -
src/net/protoconn_test.go
} if f, err := c.File(); err != nil { condFatalf(t, "file+net", "%v", err) } else { f.Close() } defer func() { if p := recover(); p != nil { t.Fatalf("panicked: %v", p) } }() c.WriteToUDP(wb, nil) c.WriteMsgUDP(wb, nil, nil) } func TestIPConnSpecificMethods(t *testing.T) { if !testableNetwork("ip4") { t.Skip("skipping: ip4 not supported")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 7.4K bytes - Viewed (0) -
test/fixedbugs/issue8606.go
{true, s1, s2}, {false, S4{[1000]byte{0}, func() {}}, S4{[1000]byte{1}, func() {}}}, } { f := func() { defer func() { if recover() != nil { panic(fmt.Sprintf("comparing %#v and %#v panicked", test.a, test.b)) } }() if test.a == test.b { panic(fmt.Sprintf("values %#v and %#v should not be equal", test.a, test.b)) } } if test.panic {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 2.3K bytes - Viewed (0) -
src/sync/pool_test.go
var p *Pool t.Run("Get", func(t *testing.T) { defer catch() if p.Get() != nil { t.Error("expected empty") } t.Error("should have panicked already") }) t.Run("Put", func(t *testing.T) { defer catch() p.Put("a") t.Error("should have panicked already") }) } func BenchmarkPool(b *testing.B) { var p Pool b.RunParallel(func(pb *testing.PB) { for pb.Next() { p.Put(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8K bytes - Viewed (0) -
src/runtime/os3_plan9.go
// functions are correctly handled. This will smash // the stack frame but we're not going back there // anyway. if usesLR { c.savelr(c.lr()) } // If PC == 0, probably panicked because of a call to a nil func. // Not faking that as the return address will make the trace look like a call // to sigpanic instead. (Otherwise the trace will end at // sigpanic and we won't get to see who faulted).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 4K bytes - Viewed (0) -
src/runtime/export_debug_test.go
// Call the debug function. h.debugCallRun(ctxt) case 1: // Function returned. Copy frame and result registers back out. h.debugCallReturn(ctxt) case 2: // Function panicked. Copy panic out. h.debugCallPanicOut(ctxt) case 8: // Call isn't safe. Get the reason. h.debugCallUnsafe(ctxt) // Don't wake h.done. We need to transition to status 16 first. case 16:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 5.1K bytes - Viewed (0) -
src/syscall/exec_unix_test.go
if v != uint64(orig.Cur) { t.Errorf("exec rlimit = %d, want %d", v, orig) } } func TestForkExecNilArgv(t *testing.T) { defer func() { if p := recover(); p != nil { t.Fatal("forkExec panicked") } }() // We don't really care what the result of forkExec is, just that it doesn't // panic, so we choose something we know won't actually spawn a process (probably).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 04:41:27 UTC 2024 - 7.9K bytes - Viewed (0) -
src/strings/builder_test.go
} for _, tt := range tests { didPanic := make(chan bool) go func() { defer func() { didPanic <- recover() != nil }() tt.fn() }() if got := <-didPanic; got != tt.wantPanic { t.Errorf("%s: panicked = %v; want %v", tt.name, got, tt.wantPanic) } } } func TestBuilderWriteInvalidRune(t *testing.T) { // Invalid runes, including negative ones, should be written as // utf8.RuneError.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 8.1K bytes - Viewed (0)