runtime icon indicating copy to clipboard operation
runtime copied to clipboard

FileSystem intermittent test failures

Open ianhays opened this issue 11 years ago • 2 comments

Tests for the FileSystem class intermittently fail. The offenders are:

Test Failure Notes
File_WriteAll_all.runTest
File_ReadAll_all.runTest
File_WriteAllBytes_StrBtA.runTest
File_AppendAll_all.runTest
File_Copy_str_str_b.runTest also leaves leftover test directories (only on failure)
FileInfo_Refresh.runTest also leaves leftover test directories (only on failure)
FileInfo_getLastWriteTime according to dotnet/runtime#14409 - I detected no failures on my runs
FileInfo_Create_str
DirectoryInfo_Refresh.runTest also leaves leftover test directories (only on failure)
DirectoryInfo_Move_str.runTest also leaves leftover test directories (only on failure)

The source of the failures is the repeated use of the same test file names causing file already in use exceptions.

ianhays avatar Jul 02 '15 16:07 ianhays

Thanks for the detailed info! I was just about to file another of these :)

mmitche avatar Jul 07 '15 21:07 mmitche

My pleasure! I'm preparing a PR now to get it running without errors... should be up by the end of tomorrow :)

ianhays avatar Jul 07 '15 21:07 ianhays