Skip to content

Commit 848d083

Browse files
authored
add test that ensures that the bug is not coming back (#65301)
1 parent 2026b44 commit 848d083

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/libraries/System.IO.FileSystem/tests/Enumeration/SymbolicLinksTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,12 @@ public void EnumerateGet_SelfReferencingLink_Static(bool recurse, bool linkAsRoo
138138
Assert.Throws<IOException>(() => Directory.GetFiles(testDirectory.FullName, "*", options).Count());
139139
}
140140
}
141+
142+
[Fact]
143+
[PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Browser)]
144+
public void PropertiesArePopulatedLazily()
145+
{
146+
Assert.True(Directory.EnumerateFileSystemEntries("/dev/fd").Count() >= 0);
147+
}
141148
}
142149
}

0 commit comments

Comments
 (0)