From 145c87a95860a3a1142ee890dc2ff6ad02780bee Mon Sep 17 00:00:00 2001 From: vivekbm <7387586+vivekbm@users.noreply.github.com> Date: Thu, 23 Apr 2020 19:20:34 +0530 Subject: [PATCH] =?utf8?q?Updated=20assert=20statement=20to=20include=20a?= =?utf8?q?=20check=20for=20Timeout=20in=20FileSystem=E2=80=A6=20(#35298)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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. --- src/libraries/Common/src/System/IO/FileSystem.Attributes.Windows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.7.4