- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 60 for testProg (0.14 sec)
-
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/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/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) -
src/cmd/link/dwarf_test.go
if !platform.ExecutableHasDWARF(runtime.GOOS, runtime.GOARCH) { t.Skipf("skipping on %s/%s: no DWARF symbol table in executables", runtime.GOOS, runtime.GOARCH) } t.Parallel() for _, prog := range []string{"testprog", "testprogcgo"} { prog := prog expectDWARF := expectDWARF if runtime.GOOS == "aix" && prog == "testprogcgo" { extld := os.Getenv("CC") if extld == "" { extld = "gcc" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 17:05:14 UTC 2023 - 6.9K bytes - Viewed (0) -
src/internal/trace/trace_test.go
type frame struct { fn string line int } type evDesc struct { kind trace.EventKind match string frames []frame } // mainLine is the line number of `func main()` in testprog/stacks.go. const mainLine = 21 want := []evDesc{ {trace.EventStateTransition, "Goroutine Running->Runnable", []frame{ {"main.main", mainLine + 82}, }},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 18.5K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
testenv.SkipFlaky(t, 49681) } o := runTestProg(t, "testprog", "RaiseException") if strings.Contains(o, "RaiseException should not return") { t.Fatalf("RaiseException did not crash program: %v", o) } if !strings.Contains(o, "Exception 0xbad") { t.Fatalf("No stack trace: %v", o) } } func TestZeroDivisionException(t *testing.T) { o := runTestProg(t, "testprog", "ZeroDivisionException")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0)