- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for testProg (0.23 sec)
-
test/const7.go
} defer os.RemoveAll(dir) const bitLimit = 512 const charLimit = 10000 // compiler-internal constant length limit testProg(dir, "x1", bitLimit, "") testProg(dir, "x2", bitLimit+1, "constant overflow") testProg(dir, "x3", charLimit-2, "constant overflow") // -2 because literal contains 0b prefix testProg(dir, "x4", charLimit-1, "excessively long constant")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 1.9K bytes - Viewed (0) -
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/runtime/semasleep_test.go
}) // Wait for After1 to close its stdout so that we know the runtime's SIGIO // handler is registered. b, err := io.ReadAll(stdout) if len(b) > 0 { t.Logf("read from testprog stdout: %s", b) } if err != nil { t.Fatalf("error reading from testprog: %v", err) } // Wait for child exit. // // Note that we must do this after waiting for the write/child end of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 17:48:24 UTC 2023 - 3.5K bytes - Viewed (0) -
src/runtime/checkptr_test.go
// so it's somewhat slow. if testing.Short() { t.Skip("skipping test in -short mode") } t.Parallel() testenv.MustHaveGoRun(t) exe, err := buildTestProg(t, "testprog", "-gcflags=all=-d=checkptr=1") if err != nil { t.Fatal(err) } testCases := []struct { cmd string want string }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 17:15:15 UTC 2022 - 2.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)