Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPermissions (0.18 sec)

  1. src/cmd/gofmt/gofmt_unix_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package main
    
    import (
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestPermissions(t *testing.T) {
    	if os.Getuid() == 0 {
    		t.Skip("skipping permission test when running as root")
    	}
    
    	dir := t.TempDir()
    	fn := filepath.Join(dir, "perm.go")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 12:52:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top