Skip to content

Commit

Permalink
Updated assert statement to include a check for Timeout in FileSystem… (
Browse files Browse the repository at this point in the history
#35298)

* Updated assert statement to include a check for Timeout in FileSystem.Attributes.Windows

* fixes 28831
Added the check, the earlier commit had a syntax error.
  • Loading branch information
vivekbm authored Apr 23, 2020
1 parent dc3c4dc commit 145c87a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal static int FillAttributeInfo(string? path, ref Interop.Kernel32.WIN32_F
)
{
// Assert so we can track down other cases (if any) to add to our test suite
Debug.Assert(errorCode == Interop.Errors.ERROR_ACCESS_DENIED || errorCode == Interop.Errors.ERROR_SHARING_VIOLATION,
Debug.Assert(errorCode == Interop.Errors.ERROR_ACCESS_DENIED || errorCode == Interop.Errors.ERROR_SHARING_VIOLATION || errorCode == Interop.Errors.ERROR_SEM_TIMEOUT,
$"Unexpected error code getting attributes {errorCode} from path {path}");

// Files that are marked for deletion will not let you GetFileAttributes,
Expand Down

0 comments on commit 145c87a

Please sign in to comment.