lib/fs: Consider win83 for root path as well when watching (ref #5706) (#5709)

This commit is contained in:
Simon Frei
2019-05-11 10:06:04 +02:00
committed by Jakob Borg
parent fbd445fe0a
commit dfbbb286fc
4 changed files with 49 additions and 24 deletions

View File

@@ -44,6 +44,10 @@ func TestWindowsPaths(t *testing.T) {
func TestResolveWindows83(t *testing.T) {
fs, dir := setup(t)
if isMaybeWin83(dir) {
dir = fs.resolveWin83(dir)
fs = newBasicFilesystem(dir)
}
defer os.RemoveAll(dir)
shortAbs, _ := fs.rooted("LFDATA~1")
@@ -71,6 +75,10 @@ func TestResolveWindows83(t *testing.T) {
func TestIsWindows83(t *testing.T) {
fs, dir := setup(t)
if isMaybeWin83(dir) {
dir = fs.resolveWin83(dir)
fs = newBasicFilesystem(dir)
}
defer os.RemoveAll(dir)
tempTop, _ := fs.rooted(TempName("baz"))