diff --git a/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.Windows.cs b/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.Windows.cs index ca5360ef66a71a..5e3a8cc45f806c 100644 --- a/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.Windows.cs +++ b/src/libraries/System.Diagnostics.Process/tests/ProcessModuleTests.Windows.cs @@ -36,9 +36,7 @@ public void LongModuleFileNamesAreSupported() IntPtr moduleHandle = Interop.Kernel32.LoadLibrary(longNamePath); if (moduleHandle == IntPtr.Zero) { - Assert.Equal(126, Marshal.GetLastWin32Error()); // ERROR_MOD_NOT_FOUND - Assert.Equal(Architecture.X86, RuntimeInformation.ProcessArchitecture); - return; // we have failed to load the module on x86, we skip the rest of the test (it's best effort) + return; // we've failed to load the module, we can't test module paths } try