aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscall/syscall_windows_test.go')
-rw-r--r--src/syscall/syscall_windows_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/syscall_windows_test.go b/src/syscall/syscall_windows_test.go
index 9773cfbfa2..03821ea594 100644
--- a/src/syscall/syscall_windows_test.go
+++ b/src/syscall/syscall_windows_test.go
@@ -20,7 +20,7 @@ func TestOpen_Dir(t *testing.T) {
dir := t.TempDir()
tests := []struct {
- mode int
+ flag int
err error
}{
{syscall.O_RDONLY, nil},
@@ -32,7 +32,7 @@ func TestOpen_Dir(t *testing.T) {
{syscall.O_RDWR, syscall.EISDIR},
}
for i, tt := range tests {
- h, err := syscall.Open(dir, tt.mode, 0)
+ h, err := syscall.Open(dir, tt.flag, 0)
if err == nil {
syscall.CloseHandle(h)
}