From 497ed578fe6334d3a54fed6e822da9ad68e7b4bb Mon Sep 17 00:00:00 2001 From: Sven Boemer Date: Fri, 6 Dec 2024 19:10:02 +0000 Subject: [PATCH] Fix CustomEventSource test https://github.com/dotnet/runtime/pull/110001 updated annotations on EventSource. This adjusts the expected preserved members to match. --- .../BCLFeatures/ETW/CustomEventSource.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/tools/illink/test/Mono.Linker.Tests.Cases/BCLFeatures/ETW/CustomEventSource.cs b/src/tools/illink/test/Mono.Linker.Tests.Cases/BCLFeatures/ETW/CustomEventSource.cs index 8aa02759e06a0d..28e0d002062ef3 100644 --- a/src/tools/illink/test/Mono.Linker.Tests.Cases/BCLFeatures/ETW/CustomEventSource.cs +++ b/src/tools/illink/test/Mono.Linker.Tests.Cases/BCLFeatures/ETW/CustomEventSource.cs @@ -17,8 +17,6 @@ public static void Main () [Kept] [KeptBaseType (typeof (EventSource))] [KeptAttributeAttribute (typeof (EventSourceAttribute))] - [KeptMember (".ctor()")] - [KeptMember (".cctor()")] [EventSource (Name = "MyCompany")] class MyCompanyEventSource : EventSource @@ -45,16 +43,12 @@ public class Tasks public int Unused; } - [KeptMember (".ctor()")] - [Kept] class NotMatching { } - [Kept] public static MyCompanyEventSource Log = new MyCompanyEventSource (); - [Kept] int private_member; [Kept]