Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 170 for tempdir (0.21 sec)

  1. src/net/sendfile_test.go

    		wg          sync.WaitGroup
    		ctx, cancel = context.WithCancel(context.Background())
    	)
    
    	defer wg.Wait()
    
    	ln := newLocalListener(b, "tcp")
    	defer ln.Close()
    
    	tempFile, err := os.CreateTemp(b.TempDir(), "test.txt")
    	if err != nil {
    		b.Fatalf("failed to create temp file: %v", err)
    	}
    	defer tempFile.Close()
    
    	fileName := tempFile.Name()
    
    	dataSize := b.N
    	wg.Add(1)
    	go func(f *os.File) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. src/syscall/exec_linux_test.go

    			os.Exit(2)
    		}
    		os.Exit(0)
    	}
    
    	testenv.MustHaveExec(t)
    	exe, err := os.Executable()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	d := t.TempDir()
    	t.Cleanup(func() {
    		// If the subprocess fails to unshare the parent directory, force-unmount it
    		// so that the test can clean it up.
    		if _, err := os.Stat(d); err == nil {
    			syscall.Unmount(d, syscall.MNT_FORCE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. tests/integration/pilot/ingress_test.go

    			t.NewSubTest("helm").Run(func(t framework.TestContext) {
    				gatewayNs := namespace.NewOrFail(t, t, namespace.Config{Prefix: "custom-gateway-helm", Inject: inject})
    				d := filepath.Join(t.TempDir(), "gateway-values.yaml")
    				rev := ""
    				if t.Settings().Revisions.Default() != "" {
    					rev = t.Settings().Revisions.Default()
    				}
    				os.WriteFile(d, []byte(fmt.Sprintf(`
    revision: %v
    gateways:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/init_test.go

    current-context: foo-context
    kind: Config
    `
    
    func TestNewInitData(t *testing.T) {
    	// create temp directory
    	tmpDir, err := os.MkdirTemp("", "kubeadm-init-test")
    	if err != nil {
    		t.Errorf("Unable to create temporary directory: %v", err)
    	}
    	defer os.RemoveAll(tmpDir)
    
    	// create config file
    	configFilePath := filepath.Join(tmpDir, "test-config-file")
    	cfgFile, err := os.Create(configFilePath)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. pkg/istio-agent/agent_test.go

    		}
    	}
    }
    
    func TestAgent(t *testing.T) {
    	test.SetForTest(t, &version.Info.Version, "version")
    
    	wd := t.TempDir()
    	mktemp := t.TempDir
    	// Normally we call leak checker first. Here we call it after TempDir to avoid the (extremely
    	// rare) race condition of a certificate being written at the same time the cleanup occurs, which
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/cc/report_test.cc

    using ::stablehlo::quantization::io::ReadFileToString;
    using ::testing::HasSubstr;
    using ::testing::IsEmpty;
    using ::testing::SizeIs;
    using ::testing::StrEq;
    using ::testing::TempDir;
    using ::tsl::protobuf::TextFormat;
    using ::tsl::testing::IsOk;
    
    using QuantizationReportTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(QuantizationReportTest, GetQuantizationResultsReturnsEmptyResults) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  7. src/runtime/crash_test.go

    		}
    		found := false
    		for i, e := range cmd.Env {
    			if strings.HasPrefix(e, "PPROF_TMPDIR=") {
    				cmd.Env[i] = "PPROF_TMPDIR=" + os.TempDir()
    				found = true
    				break
    			}
    		}
    		if !found {
    			cmd.Env = append(cmd.Env, "PPROF_TMPDIR="+os.TempDir())
    		}
    
    		top, err := cmd.CombinedOutput()
    		t.Logf("%s:\n%s", cmd.Args, top)
    		if err != nil {
    			t.Error(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/debug_test.go

    	tmpbase := filepath.Join("testdata", "test-"+base+"."+tag)
    
    	// Use a temporary directory unless -f is specified
    	if !*force {
    		tmpdir := t.TempDir()
    		tmpbase = filepath.Join(tmpdir, "test-"+base+"."+tag)
    		if *verbose {
    			fmt.Printf("Tempdir is %s\n", tmpdir)
    		}
    	}
    	exe := tmpbase
    
    	runGoArgs := []string{"build", "-o", exe, "-gcflags=all=" + gcflags}
    	runGoArgs = append(runGoArgs, moreArgs...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  9. src/net/conf_test.go

    	"os"
    	"testing"
    	"time"
    )
    
    type nssHostTest struct {
    	host      string
    	localhost string
    	want      hostLookupOrder
    }
    
    func nssStr(t *testing.T, s string) *nssConf {
    	f, err := os.CreateTemp(t.TempDir(), "nss")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if _, err := f.WriteString(s); err != nil {
    		t.Fatal(err)
    	}
    	if err := f.Close(); err != nil {
    		t.Fatal(err)
    	}
    	return parseNSSConfFile(f.Name())
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:46:36 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/os/file.go

    //
    // The directory is neither guaranteed to exist nor have accessible
    // permissions.
    func TempDir() string {
    	return tempDir()
    }
    
    // UserCacheDir returns the default root directory to use for user-specific
    // cached data. Users should create their own application-specific subdirectory
    // within this one and use that.
    //
    // On Unix systems, it returns $XDG_CACHE_HOME as specified by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top