summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/go_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/cmd/go/go_windows_test.go')
-rw-r--r--libgo/go/cmd/go/go_windows_test.go16
1 files changed, 1 insertions, 15 deletions
diff --git a/libgo/go/cmd/go/go_windows_test.go b/libgo/go/cmd/go/go_windows_test.go
index aa68a195802..99af3d43dcc 100644
--- a/libgo/go/cmd/go/go_windows_test.go
+++ b/libgo/go/cmd/go/go_windows_test.go
@@ -12,7 +12,6 @@ import (
"os/exec"
"path/filepath"
"strings"
- "syscall"
"testing"
)
@@ -57,15 +56,6 @@ func TestAbsolutePath(t *testing.T) {
}
}
-func isWindowsXP(t *testing.T) bool {
- v, err := syscall.GetVersion()
- if err != nil {
- t.Fatalf("GetVersion failed: %v", err)
- }
- major := byte(v)
- return major < 6
-}
-
func runIcacls(t *testing.T, args ...string) string {
t.Helper()
out, err := exec.Command("icacls", args...).CombinedOutput()
@@ -89,10 +79,6 @@ func runGetACL(t *testing.T, path string) string {
// has discretionary access control list (DACL) set as if the file
// was created in the destination directory.
func TestACL(t *testing.T) {
- if isWindowsXP(t) {
- t.Skip("Windows XP does not have powershell command")
- }
-
tmpdir, err := ioutil.TempDir("", "TestACL")
if err != nil {
t.Fatal(err)
@@ -111,7 +97,7 @@ func TestACL(t *testing.T) {
// will make all files created in TestACL/tmp have different
// security attributes to the files created in TestACL.
runIcacls(t, newtmpdir,
- "/grant", "guest:(oi)(ci)f", // add Guest user to have full access
+ "/grant", "*S-1-5-32-546:(oi)(ci)f", // add Guests group to have full access
)
src := filepath.Join(tmpdir, "main.go")