Skip to content

Commit 3ce642e

Browse files
committed
Update expected warnings.
1 parent ece105d commit 3ce642e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/dotnet/UnitTests/TrimmerWarningsTest.cs

+3-9
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ public void TrimmerWarningsManagedStaticRegistrar (ApplePlatform platform, strin
1717
break;
1818
case ApplePlatform.MacOSX:
1919
case ApplePlatform.MacCatalyst:
20-
expectedWarnings = new ExpectedBuildMessage [] {
21-
new ExpectedBuildMessage ("ILLink" /* line 0 */, "System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeCompiled: Attribute 'System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute' is being referenced in code but the trimmer was instructed to remove all instances of this attribute. If the attribute instances are necessary make sure to either remove the trimmer attribute XML portion which removes the attribute instances, or override the removal by using the trimmer XML descriptor to keep the attribute type (which in turn keeps all of its instances)."),
22-
};
20+
expectedWarnings = Array.Empty<ExpectedBuildMessage> ();
2321
break;
2422
default:
2523
Assert.Fail ($"Unknown platform: {platform}");
@@ -45,9 +43,7 @@ public void TrimmerWarningsStaticRegistrar (ApplePlatform platform, string runti
4543
break;
4644
case ApplePlatform.MacOSX:
4745
case ApplePlatform.MacCatalyst:
48-
expectedWarnings = new ExpectedBuildMessage [] {
49-
new ExpectedBuildMessage ("ILLink" /* line 0 */, "System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeCompiled: Attribute 'System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute' is being referenced in code but the trimmer was instructed to remove all instances of this attribute. If the attribute instances are necessary make sure to either remove the trimmer attribute XML portion which removes the attribute instances, or override the removal by using the trimmer XML descriptor to keep the attribute type (which in turn keeps all of its instances)."),
50-
};
46+
expectedWarnings = Array.Empty<ExpectedBuildMessage> ();
5147
break;
5248
default:
5349
Assert.Fail ($"Unknown platform: {platform}");
@@ -73,9 +69,7 @@ public void TrimmerWarningsDynamicRegistrar (ApplePlatform platform, string runt
7369
break;
7470
case ApplePlatform.MacOSX:
7571
case ApplePlatform.MacCatalyst:
76-
expectedWarnings = new ExpectedBuildMessage [] {
77-
new ExpectedBuildMessage ("ILLink" /* line 0 */, "System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeCompiled: Attribute 'System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute' is being referenced in code but the trimmer was instructed to remove all instances of this attribute. If the attribute instances are necessary make sure to either remove the trimmer attribute XML portion which removes the attribute instances, or override the removal by using the trimmer XML descriptor to keep the attribute type (which in turn keeps all of its instances)."),
78-
};
72+
expectedWarnings = Array.Empty<ExpectedBuildMessage> ();
7973
break;
8074
default:
8175
Assert.Fail ($"Unknown platform: {platform}");

0 commit comments

Comments
 (0)