Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTestRun (0.21 sec)

  1. src/cmd/cgo/internal/testlife/life_test.go

    		log.Panic(err)
    	}
    	os.Setenv("PWD", modRoot)
    	if err := os.WriteFile("go.mod", []byte("module cgolife\n"), 0666); err != nil {
    		log.Panic(err)
    	}
    
    	return m.Run()
    }
    
    // TestTestRun runs a test case for cgo //export.
    func TestTestRun(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    	testenv.MustHaveCGO(t)
    
    	cmd := exec.Command("go", "run", "main.go")
    	got, err := cmd.CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/teststdio/stdio_test.go

    	}
    	os.Setenv("PWD", modRoot)
    	if err := os.WriteFile("go.mod", []byte("module cgostdio\n"), 0666); err != nil {
    		log.Panic(err)
    	}
    
    	return m.Run()
    }
    
    // TestTestRun runs a cgo test that doesn't depend on non-standard libraries.
    func TestTestRun(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    	testenv.MustHaveCGO(t)
    
    	for _, file := range [...]string{
    		"chain.go",
    		"fib.go",
    		"hello.go",
    	} {
    		file := file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top