Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,675 for mypanic (0.16 sec)

  1. src/cmd/compile/internal/test/testdata/addressed_test.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"testing"
    )
    
    var output string
    
    func mypanic(t *testing.T, s string) {
    	t.Fatalf(s + "\n" + output)
    
    }
    
    func assertEqual(t *testing.T, x, y int) {
    	if x != y {
    		mypanic(t, fmt.Sprintf("assertEqual failed got %d, want %d", x, y))
    	}
    }
    
    func TestAddressed(t *testing.T) {
    	x := f1_ssa(2, 3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  2. src/runtime/panic.go

    		print("\n")
    		throw("panic during malloc")
    	}
    	if gp.m.preemptoff != "" {
    		print("panic: ")
    		printpanicval(e)
    		print("\n")
    		print("preempt off reason: ")
    		print(gp.m.preemptoff)
    		print("\n")
    		throw("panic during preemptoff")
    	}
    	if gp.m.locks != 0 {
    		print("panic: ")
    		printpanicval(e)
    		print("\n")
    		throw("panic holding locks")
    	}
    
    	var p _panic
    	p.arg = e
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  3. src/cmd/internal/test2json/testdata/panic.json

    {"Action":"start"}
    {"Action":"output","Test":"TestPanic","Output":"--- FAIL: TestPanic (0.00s)\n"}
    {"Action":"output","Test":"TestPanic","Output":"panic: oops [recovered]\n"}
    {"Action":"output","Test":"TestPanic","Output":"\tpanic: oops\n"}
    {"Action":"output","Test":"TestPanic","Output":"\n"}
    {"Action":"output","Test":"TestPanic","Output":"goroutine 7 [running]:\n"}
    {"Action":"output","Test":"TestPanic","Output":"testing.tRunner.func1(0xc000092100)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/threadpanic.go

    // void start(void);
    import "C"
    
    func init() {
    	register("CgoExternalThreadPanic", CgoExternalThreadPanic)
    }
    
    func CgoExternalThreadPanic() {
    	C.start()
    	select {}
    }
    
    //export gopanic
    func gopanic() {
    	panic("BOOM")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 428 bytes
    - Viewed (0)
  5. src/cmd/internal/test2json/testdata/panic.test

    --- FAIL: TestPanic (0.00s)
    panic: oops [recovered]
    	panic: oops
    
    goroutine 7 [running]:
    testing.tRunner.func1(0xc000092100)
    	/go/src/testing/testing.go:874 +0x3a3
    panic(0x1110ea0, 0x116aea0)
    	/go/src/runtime/panic.go:679 +0x1b2
    command-line-arguments.TestPanic(0xc000092100)
    	a_test.go:6 +0x39
    testing.tRunner(0xc000092100, 0x114f500)
    	go/src/testing/testing.go:909 +0xc9
    created by testing.(*T).Run
    	go/src/testing/testing.go:960 +0x350
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 30 20:46:44 UTC 2019
    - 479 bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/panic.c

    Cuong Manh Le <******@****.***> 1635360910 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 239 bytes
    - Viewed (0)
  7. src/runtime/testdata/testprogcgo/panic.go

    Cuong Manh Le <******@****.***> 1635360910 +0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 27 20:29:07 UTC 2021
    - 312 bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/threadpanic_windows.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <process.h>
    #include <stdlib.h>
    #include <stdio.h>
    
    void gopanic(void);
    
    static unsigned int __attribute__((__stdcall__))
    die(void* x)
    {
    	gopanic();
    	return 0;
    }
    
    void
    start(void)
    {
    	if(_beginthreadex(0, 0, die, 0, 0, 0) != 0)
    		printf("_beginthreadex failed\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 23:11:44 UTC 2016
    - 435 bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/threadpanic_unix.c

    // license that can be found in the LICENSE file.
    
    // +build !plan9,!windows
    
    #include <stdlib.h>
    #include <stdio.h>
    #include <pthread.h>
    
    void gopanic(void);
    
    static void*
    die(void* x)
    {
    	gopanic();
    	return 0;
    }
    
    void
    start(void)
    {
    	pthread_t t;
    	if(pthread_create(&t, 0, die, 0) != 0)
    		printf("pthread_create failed\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 435 bytes
    - Viewed (0)
  10. src/runtime/runtime-seh_windows_test.go

    		"runtime_test.TestSehUnwindDoublePanic.func1", "runtime.gopanic", "runtime_test.TestSehUnwindDoublePanic"}
    	defer func() {
    		defer func() {
    			if recover() == nil {
    				t.Fatal("did not panic")
    			}
    			pcs := sehCallers()
    			testSehCallersEqual(t, pcs, want)
    		}()
    		if recover() == nil {
    			t.Fatal("did not panic")
    		}
    		panic(2)
    	}()
    	panic(1)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 16:52:06 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top