[mono] Re-enable tests that call MakeGenericType with non-RuntimeType arguments ...
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Thu, 27 Jan 2022 20:25:45 +0000 (15:25 -0500)
committerGitHub <noreply@github.com>
Thu, 27 Jan 2022 20:25:45 +0000 (15:25 -0500)
commitd0165693994c2f83265f7dbf757d4f437d4bb073
tree1592d1e0c3eae504030f1167e07dd8ffd2426b8a
parent2feeccf1f8286aab52fe1880670b93d7a8f58061
[mono] Re-enable tests that call MakeGenericType with non-RuntimeType arguments (#64344)

* [mono] Re-enable tests that call MakeGenericType with non-RuntimeType arguments

   Fixes https://github.com/dotnet/runtime/issues/32743

   The actual fix was in https://github.com/dotnet/runtime/pull/58014

* [wasm] Disable some logging generator tests

`Microsoft.Extensions.Logging.Generators.Tests.LoggerMessageGeneratorEmitterTests.*`
`Microsoft.Extensions.Logging.Generators.Tests.LoggerMessageGeneratorParserTests.*`

.. failing like:

```
[18:09:38] fail: [FAIL] Microsoft.Extensions.Logging.Generators.Tests.LoggerMessageGeneratorParserTests.NotPartial
[18:09:38] info: System.ArgumentException : Empty path name is not legal. (Parameter 'path')
[18:09:38] info:    at System.IO.Strategies.FileStreamHelpers.ValidateArguments(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
[18:09:38] info:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
[18:09:38] info:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
[18:09:38] info:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
[18:09:38] info:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
[18:09:38] info:    at Roslyn.Utilities.StandardFileSystem.OpenFile(String filePath, FileMode mode, FileAccess access, FileShare share)
[18:09:38] info:    at Roslyn.Utilities.CommonCompilerFileSystemExtensions.OpenFileWithNormalizedException(ICommonCompilerFileSystem fileSystem, String filePath, FileMode fileMode, FileAccess fileAccess, FileShare fileShare)
[18:09:38] info:    at Microsoft.CodeAnalysis.MetadataReference.CreateFromFile(String path, MetadataReferenceProperties properties, DocumentationProvider documentation)
[18:09:38] info:    at SourceGenerators.Tests.RoslynTestUtils.CreateTestProject(IEnumerable`1 references, Boolean includeBaseReferences)
[18:09:38] info:    at SourceGenerators.Tests.RoslynTestUtils.RunGenerator(ISourceGenerator generator, IEnumerable`1 references, IEnumerable`1 sources, Boolean includeBaseReferences, CancellationToken cancellationToken)
[18:09:38] info:    at Microsoft.Extensions.Logging.Generators.Tests.LoggerMessageGeneratorParserTests.RunGenerator(String code, Boolean wrap, Boolean inNamespace, Boolean includeBaseReferences, Boolean includeLoggingReferences, CancellationToken cancellationToken)
[18:09:38] info:    at Microsoft.Extensions.Logging.Generators.Tests.LoggerMessageGeneratorParserTests.NotPartial()
[18:09:38] info: --- End of stack trace from previous location ---
```

.. due to https://github.com/dotnet/runtime/issues/52062 .

* Disable RegistrationBuilderTests that require ref emit on platforms that don't support it

Co-authored-by: Ankit Jain <radical@gmail.com>
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratedCodeTests.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorEmitterTests.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/tests/Microsoft.Extensions.Logging.Generators.Tests/LoggerMessageGeneratorParserTests.cs
src/libraries/System.ComponentModel.Composition.Registration/tests/System/ComponentModel/Composition/Registration/RegistrationBuilderTests.cs