diff options
author | Jeremi Kurdek <59935235+jkurdek@users.noreply.github.com> | 2022-08-19 00:09:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 00:09:34 +0300 |
commit | 9332578bfd67d8b1e53a3cbf9e0f92d5af7186ac (patch) | |
tree | 248651815715e35639d7c0960f0592ff0058fb54 /test | |
parent | 696c2166078b1a70f12407840c3ab0f90d73211b (diff) |
IL2121 warnings point to XML files correctly (#2965)
Warnings indicating an unnecessary suppression produced by XML are now pointing to the xml location instead of being generated on the member the xml targets.
Diffstat (limited to 'test')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/DetectRedundantSuppressionsFromXML.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/DetectRedundantSuppressionsFromXML.cs b/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/DetectRedundantSuppressionsFromXML.cs index 625817372..274eb8119 100644 --- a/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/DetectRedundantSuppressionsFromXML.cs +++ b/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/DetectRedundantSuppressionsFromXML.cs @@ -12,6 +12,8 @@ namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression { [SkipKeptItemsValidation] [ExpectedNoWarnings] + [ExpectedWarning ("IL2121", "IL2026", ProducedBy = ProducedBy.Trimmer, FileName = "DetectRedundantSuppressionsFromXML.xml", SourceLine = 7)] + [ExpectedWarning ("IL2121", "IL2109", ProducedBy = ProducedBy.Trimmer, FileName = "DetectRedundantSuppressionsFromXML.xml", SourceLine = 12)] [SetupLinkAttributesFile ("DetectRedundantSuppressionsFromXML.xml")] public class DetectRedundantSuppressionsFromXML { @@ -20,12 +22,8 @@ namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression DetectRedundantSuppressions.Test (); } - [ExpectedWarning ("IL2121", "IL2109", ProducedBy = ProducedBy.Trimmer)] public class DetectRedundantSuppressions { - // The warning should ideally point to XML. - // https://github.com/dotnet/linker/issues/2923 - [ExpectedWarning ("IL2121", "IL2026", ProducedBy = ProducedBy.Trimmer)] public static void Test () { DoNotTriggerWarning (); |