- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 48 for testProg (0.38 sec)
-
src/runtime/crash_test.go
t.Skip("-quick") } testenv.MustHaveGoBuild(t) testprog.Lock() if testprog.dir == "" { dir, err := os.MkdirTemp("", "go-build") if err != nil { t.Fatalf("failed to create temp directory: %v", err) } testprog.dir = dir toRemove = append(toRemove, dir) } if testprog.target == nil { testprog.target = make(map[string]*buildexe) } name := binary if len(flags) > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/runtime/signal_windows_test.go
} if strings.HasPrefix(testenv.Builder(), "windows-amd64-2012") { testenv.SkipFlaky(t, 49681) } testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) testenv.MustHaveExecPath(t, "gcc") testprog.Lock() defer testprog.Unlock() dir := t.TempDir() // build c program dll := filepath.Join(dir, "veh.dll") cmd := exec.Command("gcc", "-shared", "-o", dll, "testdata/testwinlibthrow/veh.c")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 08:26:52 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/cgo/internal/testfortran/fortran_test.go
t.Skipf("skipping Fortran test: could not build helloworld.f90 with %s: %s", fc, err) } // Finally, run the actual test. t.Log("go", "run", "./testdata/testprog") var stdout, stderr strings.Builder cmd := exec.Command("go", "run", "./testdata/testprog") cmd.Stdout = &stdout cmd.Stderr = &stderr err := cmd.Run() t.Logf("%v", cmd) if stderr.Len() != 0 { t.Logf("stderr:\n%s", stderr.String()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 01:29:16 UTC 2023 - 2.6K bytes - Viewed (0) -
src/internal/trace/testdata/mktests.go
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) -
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/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)