From: vivekbm <7387586+vivekbm@users.noreply.github.com> Date: Thu, 23 Apr 2020 13:50:34 +0000 (+0530) Subject: Updated assert statement to include a check for Timeout in FileSystem… (#35298) X-Git-Tag: submit/tizen/20210909.063632~8425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=145c87a95860a3a1142ee890dc2ff6ad02780bee;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Updated assert statement to include a check for Timeout in FileSystem… (#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. --- diff --git a/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs b/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs index 977293e..274f049 100644 --- a/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs +++ b/src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs @@ -81,7 +81,7 @@ namespace System.IO ) { // 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,