Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for testProg (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  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/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)
  8. 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)
  9. src/internal/trace/testdata/tests/go122-annotations.test

    String id=28
    	data="0123456789abcdef"
    String id=29
    	data="post-existing region"
    String id=30
    	data="main.main.func1.1"
    String id=31
    	data="/usr/local/google/home/mknyszek/work/go-1/src/internal/trace/v2/testdata/testprog/annotations.go"
    String id=32
    	data="runtime/trace.WithRegion"
    String id=33
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/trace/annotation.go"
    String id=34
    	data="main.main.func1"
    String id=35
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. src/testing/internal/testdeps/deps.go

    func (TestDeps) ImportPath() string {
    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    	set bool
    }
    
    func (l *testLog) Getenv(key string) {
    	l.add("getenv", key)
    }
    
    func (l *testLog) Open(name string) {
    	l.add("open", name)
    }
    
    func (l *testLog) Stat(name string) {
    	l.add("stat", name)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top