Skip to content

[Platform] attribute fails with DllNotFoundException in WASM #3608

Closed

Description

@AlekseyMartynov

Version: 3.13.0-dev-06832

Steps to reproduce:

  • BlazorApp1.zip
  • Load in VS 2019, run in Chrome
  • Check browser developer console
Type: Failure 
Message: An exception was thrown while loading the test.
System.DllNotFoundException: libc assembly:<unknown assembly> type:<unknown type> member:(null)
 at (wrapper managed-to-native) NUnit.Framework.Internal.OSPlatform.uname(intptr)
 at NUnit.Framework.Internal.OSPlatform.CheckIfIsMacOSX (System.PlatformID platform) [0x0002b] in C:\projects\nunit\src\NUnitFramework\framework\Internal\OSPlatform.cs:367 
 at NUnit.Framework.Internal.OSPlatform+<>c.<.cctor>b__93_0 () [0x000a0] in C:\projects\nunit\src\NUnitFramework\framework\Internal\OSPlatform.cs:61 
 at System.Lazy`1[T].ViaFactory (System.Threading.LazyThreadSafetyMode mode) <0x370a6a8 + 0x00034> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---

 at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal(System.Reflection.ICustomAttributeProvider,System.Type,bool)
 at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) <0x31e5248 + 0x00036> in <filename unknown>:0 
 at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Boolean inherit) <0x36bc730 + 0x00026> in <filename unknown>:0 
 at System.Reflection.RuntimeMethodInfo.GetCustomAttributes (System.Boolean inherit) <0x36bc6f8 + 0x00006> in <filename unknown>:0 
 at NUnit.Framework.Internal.AsyncToSyncAdapter.IsAsyncOperation (System.Reflection.MethodInfo method) [0x00001] in C:\projects\nunit\src\NUnitFramework\framework\Internal\AsyncToSyncAdapter.cs:37 
 at NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.CheckTestMethodSignature (NUnit.Framework.Internal.TestMethod testMethod, NUnit.Framework.Internal.TestCaseParameters parms) [0x000f7] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\NUnitTestCaseBuilder.cs:183 
 at NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder.BuildTestMethod (NUnit.Framework.Interfaces.IMethodInfo method, NUnit.Framework.Internal.Test parentSuite, NUnit.Framework.Internal.TestCaseParameters parms) [0x00022] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\NUnitTestCaseBuilder.cs:63 
 at NUnit.Framework.TestAttribute.BuildFrom (NUnit.Framework.Interfaces.IMethodInfo method, NUnit.Framework.Internal.Test suite) [0x00022] in C:\projects\nunit\src\NUnitFramework\framework\Attributes\TestAttribute.cs:132 
 at NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder.BuildSingleTestMethod (NUnit.Framework.Interfaces.IMethodInfo method, NUnit.Framework.Internal.Test suite) [0x00009] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\DefaultTestCaseBuilder.cs:155 
 at NUnit.Framework.Internal.Builders.DefaultTestCaseBuilder.BuildFrom (NUnit.Framework.Interfaces.IMethodInfo method, NUnit.Framework.Internal.Test parentSuite) [0x000ec] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\DefaultTestCaseBuilder.cs:122 
 at NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildTestCase (NUnit.Framework.Interfaces.IMethodInfo method, NUnit.Framework.Internal.TestSuite suite) [0x00001] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\NUnitTestFixtureBuilder.cs:228 
 at NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.AddTestCasesToFixture (NUnit.Framework.Internal.TestFixture fixture, NUnit.Framework.Interfaces.IPreFilter filter) [0x0005c] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\NUnitTestFixtureBuilder.cs:201 
 at NUnit.Framework.Internal.Builders.NUnitTestFixtureBuilder.BuildFrom (NUnit.Framework.Interfaces.ITypeInfo typeInfo, NUnit.Framework.Interfaces.IPreFilter filter, NUnit.Framework.Interfaces.ITestFixtureData testFixtureData) [0x002d7] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\NUnitTestFixtureBuilder.cs:173 
 at NUnit.Framework.TestFixtureAttribute+<BuildFrom>d__47.MoveNext () [0x00020] in C:\projects\nunit\src\NUnitFramework\framework\Attributes\TestFixtureAttribute.cs:269 
 at NUnit.Framework.Internal.Builders.DefaultSuiteBuilder.BuildFrom (NUnit.Framework.Interfaces.ITypeInfo typeInfo, NUnit.Framework.Interfaces.IPreFilter filter) [0x0005e] in C:\projects\nunit\src\NUnitFramework\framework\Internal\Builders\DefaultSuiteBuilder.cs:98  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions