-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Milestone
Description
Run: runtime 20211206.59
Failed test:
net7.0-OSX-Release-x64-CoreCLR_checked-OSX.1014.Amd64.Open
- DllImportGenerator.UnitTests.Diagnostics.TargetFrameworkNotSupported_NoGeneratedDllImport_NoDiagnostic(targetFramework: Net5)
- DllImportGenerator.UnitTests.Diagnostics.TargetFrameworkNotSupported_NoGeneratedDllImport_NoDiagnostic(targetFramework: Standard)
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsFallbackForwarder(source: \"\\nusing System.Runtime.InteropServices;\\n\\nnamespa\"..., targetFramework: Standard, expectFallbackForwarder: True)
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsFallbackForwarder(source: \"\\nusing System.Runtime.InteropServices;\\n\\nnamespa\"..., targetFramework: Net5, expectFallbackForwarder: True)
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsFallbackForwarder(source: \"\\nusing System.Runtime.InteropServices;\\n\\nnamespa\"..., targetFramework: Standard, expectFallbackForwarder: False)
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsFallbackForwarder(source: \"\\nusing System.Runtime.InteropServices;\\n\\nnamespa\"..., targetFramework: Net5, expectFallbackForwarder: False)
- DllImportGenerator.UnitTests.Diagnostics.TargetFrameworkNotSupported_NoDiagnostic(targetFramework: Net5)
- DllImportGenerator.UnitTests.Diagnostics.TargetFrameworkNotSupported_NoDiagnostic(targetFramework: Standard)
Error message:
Assert.All() Failure: 5 out of 9 items in the collection did not pass.
[7]: Item: (3,15): error CS1729: 'object' does not contain a constructor that takes 0 arguments
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual: HashSet<String> ["CS1729"]
at Xunit.Assert.Subset[T](ISet1 expectedSuperset, ISet1 actual) in //src/xunit.assert/Asserts/SetAsserts.cs:line 55
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[T](IEnumerable1 collection, Action1 action) in //src/xunit.assert/Asserts/CollectionAsserts.cs:line 36
[6]: Item: (5,16): error CS0518: Predefined type 'System.String' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual: HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[T](ISet1 expectedSuperset, ISet1 actual) in //src/xunit.assert/Asserts/SetAsserts.cs:line 55
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[T](IEnumerable1 collection, Action1 action) in //src/xunit.assert/Asserts/CollectionAsserts.cs:line 36
[3]: Item: (5,6): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual: HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[T](ISet1 expectedSuperset, ISet1 actual) in //src/xunit.assert/Asserts/SetAsserts.cs:line 55
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[T](IEnumerable1 collection, Action1 action) in //src/xunit.assert/Asserts/CollectionAsserts.cs:line 36
[2]: Item: (6,26): error CS0518: Predefined type 'System.Void' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual: HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[T](ISet1 expectedSuperset, ISet1 actual) in //src/xunit.assert/Asserts/SetAsserts.cs:line 55
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[T](IEnumerable1 collection, Action1 action) in //src/xunit.assert/Asserts/CollectionAsserts.cs:line 36
[1]: Item: (3,15): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual: HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[T](ISet1 expectedSuperset, ISet1 actual) in //src/xunit.assert/Asserts/SetAsserts.cs:line 55
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[T](IEnumerable1 collection, Action1 action) in /_/src/xunit.assert/Asserts/CollectionAsserts.cs:line 36
Stack trace
at DllImportGenerator.UnitTests.TestUtils.AssertPreSourceGeneratorCompilation(Compilation comp) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 73
at DllImportGenerator.UnitTests.Diagnostics.TargetFrameworkNotSupported_NoGeneratedDllImport_NoDiagnostic(TestTargetFramework targetFramework) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/Diagnostics.cs:line 61
--- End of stack trace from previous location ---