Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 447 for writeTime (0.23 sec)

  1. test/fixedbugs/issue46234.go

    	gpi = pi
    }
    `
    
    func main() {
    	dir, err := ioutil.TempDir("", "46234")
    	if err != nil {
    		log.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    
    	file := filepath.Join(dir, "main.go")
    	if err := ioutil.WriteFile(file, []byte(prog), 0655); err != nil {
    		log.Fatalf("Write error %v", err)
    	}
    
    	cmd := exec.Command("go", "run", file)
    	output, err := cmd.CombinedOutput()
    	if err == nil {
    		log.Fatalf("Passed, expected an error")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/users/users_linux.go

    	fileGroups = addEntries(fileGroups, groupsToCreate, createGroup)
    
    	// Write the files.
    	klog.V(klogLevel).Infof("Writing %q and %q", pathUsers, pathGroups)
    	if err := writeFile(fUsers, fileUsers); err != nil {
    		return nil, err
    	}
    	if err := writeFile(fGroups, fileGroups); err != nil {
    		return nil, err
    	}
    
    	// Prepare the maps of users and groups.
    	usersConcat := append(users, usersToCreate...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  3. internal/store/queuestore.go

    	for i := range item {
    		err := enc.Encode(item[i])
    		if err != nil {
    			return err
    		}
    	}
    	b := buf.Bytes()
    
    	path := filepath.Join(store.directory, key+store.fileExt)
    	err := os.WriteFile(path, b, os.FileMode(0o770))
    	buf.Reset()
    	if err != nil {
    		return err
    	}
    
    	// Increment the item count.
    	store.entries[key] = time.Now().UnixNano()
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 25 16:44:20 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

            public void updateFile(Runnable action) throws LockTimeoutException {
                getFileLock().updateFile(action);
            }
    
            @Override
            public void writeFile(Runnable action) throws LockTimeoutException {
                getFileLock().writeFile(action);
            }
        }
    
        Thread getOwner() {
            return owner;
        }
    
        FileAccess getFileAccess() {
            return fileAccess;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  5. src/runtime/runtime-gdb_test.go

    	var bp int
    	lines := bytes.Split(src, []byte("\n"))
    	for i, line := range lines {
    		if bytes.Contains(line, []byte("breakpoint")) {
    			bp = i
    			break
    		}
    	}
    
    	err := os.WriteFile(filepath.Join(dir, "main.go"), src, 0644)
    	if err != nil {
    		t.Fatalf("failed to create file: %v", err)
    	}
    	nLines := lastLine(src)
    
    	cmd := exec.Command(testenv.GoToolPath(t), "build", "-o", "a.exe", "main.go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccess.java

            try {
                boolean rebuild = initializationAction.requiresInitialization(fileLock);
                if (rebuild) {
                    fileLock.writeFile(() -> initializationAction.initialize(fileLock));
                }
                onOpenAction.accept(fileLock);
            } catch (Exception e) {
                fileLock.close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. cmd/gotemplate/gotemplate_test.go

    		},
    	} {
    		cwd, err := os.Getwd()
    		require.NoError(t, err)
    
    		t.Run(name, func(t *testing.T) {
    			tmp := t.TempDir()
    			for fileName, fileContent := range tt.files {
    				err := os.WriteFile(path.Join(tmp, fileName), []byte(fileContent), 0666)
    				require.NoError(t, err, "create input file")
    			}
    			defer os.Chdir(cwd)
    			require.NoError(t, os.Chdir(tmp), "change into tmp directory")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 22 13:43:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/go_test.go

    	srcFile := filepath.Join(dir, "x.go")
    	src := `package main
    
    import (
    	_ "net"
    )
    
    //go:cgo_import_dynamic _ _ "libc.so"
    
    func main() {}`
    	if err := os.WriteFile(srcFile, []byte(src), 0644); err != nil {
    		t.Fatal(err)
    	}
    
    	exe := filepath.Join(dir, "deduped.exe")
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, srcFile).CombinedOutput()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. src/os/exec/lp_linux_test.go

    	}
    	t.Cleanup(func() {
    		if err := syscall.Unmount(tmp, 0); err != nil {
    			t.Error(err)
    		}
    	})
    
    	// Create an executable.
    	path := filepath.Join(tmp, "program")
    	err = os.WriteFile(path, []byte("#!/bin/sh\necho 123\n"), 0o755)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Check that it works as expected.
    	_, err = exec.LookPath(path)
    	if err != nil {
    		t.Fatalf("LookPath: got %v, want nil", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:02:50 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/fixedbugs_test.go

    	}
    }
    
    // Test that the generated assembly has line numbers (Issue #16214).
    func TestIssue16214(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	dir := t.TempDir()
    
    	src := filepath.Join(dir, "x.go")
    	err := os.WriteFile(src, []byte(issue16214src), 0644)
    	if err != nil {
    		t.Fatalf("could not write file: %v", err)
    	}
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "compile", "-p=main", "-S", "-o", filepath.Join(dir, "out.o"), src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top