summaryrefslogtreecommitdiffstats
path: root/libgo/go/os/path_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/path_test.go')
-rw-r--r--libgo/go/os/path_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/libgo/go/os/path_test.go b/libgo/go/os/path_test.go
index 89d66c29ef9..18634ba410e 100644
--- a/libgo/go/os/path_test.go
+++ b/libgo/go/os/path_test.go
@@ -8,7 +8,6 @@ import (
. "os"
"path/filepath"
"runtime"
- "syscall"
"testing"
)
@@ -63,7 +62,7 @@ func TestMkdirAll(t *testing.T) {
t.Fatalf("MkdirAll %q returned wrong error path: %q not %q", ffpath, filepath.Clean(perr.Path), filepath.Clean(fpath))
}
- if syscall.OS == "windows" {
+ if runtime.GOOS == "windows" {
path := `_test\_TestMkdirAll_\dir\.\dir2\`
err := MkdirAll(path, 0777)
if err != nil {
@@ -117,7 +116,7 @@ func TestRemoveAll(t *testing.T) {
// Determine if we should run the following test.
testit := true
- if syscall.OS == "windows" {
+ if runtime.GOOS == "windows" {
// Chmod is not supported under windows.
testit = false
} else {
OpenPOWER on IntegriCloud