-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] Modify System.Net.NetworkInformation to throw PNSE #38928
[wasm] Modify System.Net.NetworkInformation to throw PNSE #38928
Conversation
Tagging subscribers to this area: @dotnet/ncl |
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/IPGlobalPropertiesTest.cs
Outdated
Show resolved
Hide resolved
@@ -21,6 +21,7 @@ public NetworkInterfaceBasicTest(ITestOutputHelper output) | |||
} | |||
|
|||
[Fact] | |||
[PlatformSpecific(~TestPlatforms.Browser)] // throws System.IO.DirectoryNotFoundException : Could not find a part of the path '/etc/resolv.conf' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an acceptable experience, getting a DirectoryNotFoundException for /etc/resolv.conf ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that /etc/resolv.conf is generally present but not required for name resolution to work on Unix.
I'm wondering if it would make sense to fix either the test or production code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I need to file an issue?
I think almost none of the APIs in this assembly can be implemented on Browser/WebAssembly as we don't have access to the network cards. The only exceptions I can think of are My vote would be to add PNSE for the whole assembly and file a tracking issue to eventually implement those two. |
That sounds fine to me.
Sounds like something we should fix separately from the wasm effort. |
I filed the issue for that: #38988 |
aee1d4c
to
cc3c3e9
Compare
src/libraries/System.Net.NetworkInformation/src/System.Net.NetworkInformation.csproj
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.NetworkInformation/src/System.Net.NetworkInformation.csproj
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.NetworkInformation/src/System.Net.NetworkInformation.csproj
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.NetworkInformation/tests/FunctionalTests/AssemblyInfo.cs
Show resolved
Hide resolved
# Conflicts: # src/libraries/System.Net.NetworkInformation/src/System.Net.NetworkInformation.csproj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -187,6 +188,7 @@ public void ValidateDeserializationOfObjectWithGenericTypeWhichGenericArgumentHa | |||
[Fact] | |||
[ActiveIssue("https://github.com/dotnet/runtime/issues/34008", TestPlatforms.Linux, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] | |||
[ActiveIssue("https://github.com/dotnet/runtime/issues/34753", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] | |||
[PlatformSpecific(~TestPlatforms.Browser)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akoeplinger this is one of the tests we would end up disabling after BinaryFormatter is killed on WASM.
Maybe we want to update to use conditional with PlatformDetecion.IsBinaryFormatterSupported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@safern yeah, feel free to send a follow up PR for that :)
@@ -49,6 +49,7 @@ public void SerializeHugeObjectGraphs(int limit) | |||
[SkipOnCoreClr("Takes too long on Checked", RuntimeConfiguration.Checked)] | |||
[ActiveIssue("https://github.com/dotnet/runtime/issues/34008", TestPlatforms.Linux, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] | |||
[ActiveIssue("https://github.com/dotnet/runtime/issues/34753", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] | |||
[PlatformSpecific(~TestPlatforms.Browser)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This as well.
Part of #38422.