dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.9k stars 4.01k forks source link

Mono test failure CSharp.UnitTests.Emit.ResourceTests.AddResourceToModule #31279

Open gafter opened 5 years ago

gafter commented 5 years ago

This test is failing on Linux mono for PRs into the features/recursive-patterns branch.

2018-11-17T01:48:13.3915830Z     Microsoft.CodeAnalysis.CSharp.UnitTests.Emit.ResourceTests.AddResourceToModule [FAIL]
2018-11-17T01:48:13.3925508Z       System.NullReferenceException : Object reference not set to an instance of an object
2018-11-17T01:48:13.3930942Z       Stack Trace:
2018-11-17T01:48:13.4075872Z           at System.Reflection.Assembly.add_ModuleResolve (System.Reflection.ModuleResolveEventHandler value) [0x00000] in <3fbd5de7321a46409ce8ab20db4b2557>:0 
2018-11-17T01:48:13.4076778Z           at Microsoft.CodeAnalysis.CSharp.UnitTests.Emit.ResourceTests.AddResourceToModule () [0x00367] in <8c6e94205fd44c8b8c1316a2dd08c849>:0 
2018-11-17T01:48:13.4077270Z           at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
2018-11-17T01:48:13.4104432Z           at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <3fbd5de7321a46409ce8ab20db4b2557>:0 
gafter commented 5 years ago

Addressing by changing

        [ConditionalFact(typeof(DesktopOnly))]

to

        [ConditionalFact(typeof(WindowsDesktopOnly))]

Until the underlying issue can be fixed.