- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 69 for testProg (0.16 sec)
-
src/internal/trace/testdata/README.md
variable. Test names are defined as the name of the `.go` file that generates the trace, but with the `.go` extension removed. ## Trace test programs The trace test programs in the `testprog` directory generate traces to stdout. Otherwise they're just normal programs. ## Trace debug commands The `cmd` directory contains helpful tools for debugging traces.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.1K bytes - Viewed (0) -
src/runtime/coro_test.go
"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) -
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) -
src/cmd/trace/testdata/mktests.go
"fmt" "internal/trace/raw" "internal/trace/version" "io" "log" "os" "os/exec" ) func main() { // Create command. var trace, stderr bytes.Buffer cmd := exec.Command("go", "run", "./testprog/main.go") cmd.Stdout = &trace cmd.Stderr = &stderr // Run trace program; the trace will appear in stdout. fmt.Fprintln(os.Stderr, "running trace program...") if err := cmd.Run(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.2K bytes - Viewed (0) -
src/runtime/proc_test.go
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) -
src/runtime/gc_test.go
) 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) -
src/runtime/crash_unix_test.go
// affect this test and this is itself a test of a debug mode, it's not // a high priority. testenv.SkipFlaky(t, 55160) } exe, err := buildTestProg(t, "testprog") if err != nil { t.Fatal(err) } cmd := testenv.Command(t, exe, "CrashDumpsAllThreads") cmd = testenv.CleanCmdEnv(cmd) cmd.Dir = t.TempDir() // put any core file in tempdir cmd.Env = append(cmd.Env,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 20:11:47 UTC 2023 - 9.2K bytes - Viewed (0) -
src/runtime/debuglog_test.go
func TestDebugLogBuild(t *testing.T) { testenv.MustHaveGoBuild(t) // It doesn't matter which program we build, anything will rebuild the // runtime. if _, err := buildTestProg(t, "testprog", "-tags=debuglog"); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 16:59:26 UTC 2022 - 4.9K bytes - Viewed (0) -
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) -
src/debug/pe/file_test.go
testenv.MustHaveGoRun(t) tmpdir := t.TempDir() src := filepath.Join(tmpdir, "a.go") file, err := os.Create(src) if err != nil { t.Fatal(err) } err = template.Must(template.New("main").Parse(testprog)).Execute(file, linktype != linkNoCgo) if err != nil { if err := file.Close(); err != nil { t.Error(err) } t.Fatal(err) } if err := file.Close(); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 01 02:25:16 UTC 2023 - 22.3K bytes - Viewed (0)