aboutsummaryrefslogtreecommitdiff
path: root/src/os/root_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/root_windows_test.go')
-rw-r--r--src/os/root_windows_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/root_windows_test.go b/src/os/root_windows_test.go
index f9bddc0d67..62e2097123 100644
--- a/src/os/root_windows_test.go
+++ b/src/os/root_windows_test.go
@@ -7,6 +7,7 @@
package os_test
import (
+ "errors"
"os"
"path/filepath"
"testing"
@@ -43,4 +44,10 @@ func TestRootWindowsCaseInsensitivity(t *testing.T) {
t.Fatal(err)
}
f.Close()
+ if err := r.Remove("FILE"); err != nil {
+ t.Fatal(err)
+ }
+ if _, err := os.Stat(filepath.Join(dir, "file")); !errors.Is(err, os.ErrNotExist) {
+ t.Fatalf("os.Stat(file) after deletion: %v, want ErrNotFound", err)
+ }
}