Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for runTestProg (0.14 sec)

  1. src/runtime/crash_cgo_test.go

    		t.Skip("Skipping in short mode") // takes up to 64 seconds
    	}
    	got := runTestProg(t, "testprogcgo", "CgoSignalDeadlock")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    }
    
    func TestCgoTraceback(t *testing.T) {
    	t.Parallel()
    	got := runTestProg(t, "testprogcgo", "CgoTraceback")
    	want := "OK\n"
    	if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    func TestVDSO(t *testing.T) {
    	t.Parallel()
    	output := runTestProg(t, "testprog", "SignalInVDSO")
    	want := "success\n"
    	if output != want {
    		t.Fatalf("output:\n%s\n\nwanted:\n%s", output, want)
    	}
    }
    
    func testCrashHandler(t *testing.T, cgo bool) {
    	type crashTest struct {
    		Cgo bool
    	}
    	var output string
    	if cgo {
    		output = runTestProg(t, "testprogcgo", "Crash")
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. src/runtime/coro_test.go

    		"CoroLockOSThreadLockIterYieldNewG",
    		"CoroLockOSThreadLockAfterPull",
    		"CoroLockOSThreadStopLocked",
    		"CoroLockOSThreadStopLockedIterNested",
    	} {
    		t.Run(test, func(t *testing.T) {
    			checkCoroTestProgOutput(t, runTestProg(t, "testprog", test))
    		})
    	}
    }
    
    func TestCoroCgoCallback(t *testing.T) {
    	testenv.MustHaveCGO(t)
    	if runtime.GOOS == "windows" {
    		t.Skip("coro cgo callback tests not supported on Windows")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 21:36:37 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/runtime/numcpu_freebsd_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import "testing"
    
    func TestFreeBSDNumCPU(t *testing.T) {
    	got := runTestProg(t, "testprog", "FreeBSDNumCPU")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 22:06:24 UTC 2017
    - 381 bytes
    - Viewed (0)
  5. src/internal/trace/testdata/mktests.go

    	log.SetFlags(0)
    	ctx, err := newContext()
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := ctx.runGenerators(); err != nil {
    		log.Fatal(err)
    	}
    	if err := ctx.runTestProg("./testprog/annotations.go"); err != nil {
    		log.Fatal(err)
    	}
    	if err := ctx.runTestProg("./testprog/annotations-stress.go"); err != nil {
    		log.Fatal(err)
    	}
    }
    
    type context struct {
    	testNames map[string]struct{}
    	filter    *regexp.Regexp
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. src/runtime/panic_test.go

    		{"panicCustomUint64", `panic: main.MyUint64(93)`},
    		{"panicCustomUintptr", `panic: main.MyUintptr(93)`},
    	}
    
    	for _, tt := range tests {
    		t := t
    		t.Run(tt.name, func(t *testing.T) {
    			output := runTestProg(t, "testprog", tt.name)
    			if !strings.HasPrefix(output, tt.wantPanicPrefix) {
    				t.Fatalf("%q\nis not present in\n%s", tt.wantPanicPrefix, output)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/runtime/proc_test.go

    	if !runtime.PreemptMSupported {
    		t.Skip("asynchronous preemption not supported on this platform")
    	}
    	output := runTestProg(t, "testprog", "AsyncPreempt")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("want %s, got %s\n", want, output)
    	}
    }
    
    func TestGCFairness(t *testing.T) {
    	output := runTestProg(t, "testprog", "GCFairness")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("want %s, got %s\n", want, output)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.8K bytes
    - Viewed (0)
  8. src/runtime/crash_unix_test.go

    		t.Errorf("got %v; expected SIGTERM", ee)
    	}
    }
    
    func TestSignalIgnoreSIGTRAP(t *testing.T) {
    	if runtime.GOOS == "openbsd" {
    		testenv.SkipFlaky(t, 49725)
    	}
    
    	output := runTestProg(t, "testprognet", "SignalIgnoreSIGTRAP")
    	want := "OK\n"
    	if output != want {
    		t.Fatalf("want %s, got %s\n", want, output)
    	}
    }
    
    func TestSignalDuringExec(t *testing.T) {
    	switch runtime.GOOS {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. src/runtime/gc_test.go

    	"time"
    	"unsafe"
    )
    
    func TestGcSys(t *testing.T) {
    	t.Skip("skipping known-flaky test; golang.org/issue/37331")
    	if os.Getenv("GOGC") == "off" {
    		t.Skip("skipping test; GOGC=off in environment")
    	}
    	got := runTestProg(t, "testprog", "GCSys")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got %q", want, got)
    	}
    }
    
    func TestGcDeepNesting(t *testing.T) {
    	type T [2][2][2][2][2][2][2][2][2][2]*int
    	a := new(T)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. src/runtime/stack_test.go

    	}
    }
    
    func TestTracebackAncestors(t *testing.T) {
    	goroutineRegex := regexp.MustCompile(`goroutine [0-9]+ \[`)
    	for _, tracebackDepth := range []int{0, 1, 5, 50} {
    		output := runTestProg(t, "testprog", "TracebackAncestors", fmt.Sprintf("GODEBUG=tracebackancestors=%d", tracebackDepth))
    
    		numGoroutines := 3
    		numFrames := 2
    		ancestorsExpected := numGoroutines
    		if numGoroutines > tracebackDepth {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top