Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestChmod (0.15 sec)

  1. src/internal/syscall/windows/syscall_windows.go

    	CreationTime   int64
    	LastAccessTime int64
    	LastWriteTime  int64
    	ChangedTime    int64
    	FileAttributes uint32
    
    	// Pad out to 8-byte alignment.
    	//
    	// Without this padding, TestChmod fails due to an argument validation error
    	// in SetFileInformationByHandle on windows/386.
    	//
    	// https://learn.microsoft.com/en-us/cpp/build/reference/zp-struct-member-alignment?view=msvc-170
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. src/os/os_test.go

    		t.Errorf("Stat %q: mode %#o want %#o", path, dir.Mode(), mode)
    	}
    }
    
    func TestChmod(t *testing.T) {
    	// Chmod is not supported on wasip1.
    	if runtime.GOOS == "wasip1" {
    		t.Skip("Chmod is not supported on " + runtime.GOOS)
    	}
    	t.Parallel()
    
    	f := newFile("TestChmod", t)
    	defer Remove(f.Name())
    	defer f.Close()
    	// Creation mode is read write
    
    	fm := FileMode(0456)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top