Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for creatingTemp (0.11 sec)

  1. src/cmd/go/go_unix_test.go

    	//
    	// (See https://go.dev/issue/62724, https://go.dev/issue/17909.)
    	control := tg.path("control")
    	tg.creatingTemp(control)
    	if err := os.WriteFile(control, []byte("#!/bin/sh\nexit 0"), 0777); err != nil {
    		t.Fatal(err)
    	}
    	cfi, err := os.Stat(control)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	exe := tg.path("x")
    	tg.creatingTemp(exe)
    	tg.run("build", "-o", exe, tg.path("x.go"))
    	fi, err := os.Stat(exe)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/go/go_test.go

    	return tg.doGrepCount(match, &tg.stdout) + tg.doGrepCount(match, &tg.stderr)
    }
    
    // creatingTemp records that the test plans to create a temporary file
    // or directory. If the file or directory exists already, it will be
    // removed. When the test completes, the file or directory will be
    // removed if it exists.
    func (tg *testgoData) creatingTemp(path string) {
    	tg.t.Helper()
    	if filepath.IsAbs(path) && !strings.HasPrefix(path, tg.tempdir) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top