From f89efa1d0faddc2b2a01a2d3dd4d6426af6ef6b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Oct 2025 00:44:08 +0000 Subject: [PATCH 1/2] Initial plan From 00bf5d78015e36b07a7d7240d6f7f159e12cebba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Oct 2025 01:11:56 +0000 Subject: [PATCH 2/2] Convert debugger tests to use ConditionalFact attribute Co-authored-by: MichalStrehovsky <13110571+MichalStrehovsky@users.noreply.github.com> --- .../tests/ActivityTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs b/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs index a4d7b68d1f8eab..9984a0548dd975 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs +++ b/src/libraries/System.Diagnostics.DiagnosticSource/tests/ActivityTests.cs @@ -2549,7 +2549,7 @@ public void OnError(Exception error) { } private const int MaxClockErrorMSec = 20; - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityDebuggerDisplay() { Activity activity = new Activity("TestOperation"); @@ -2562,7 +2562,7 @@ public void TestActivityDebuggerDisplay() activity.Stop(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityDebuggerProxy() { Activity activity = new Activity("TestOperation"); @@ -2577,7 +2577,7 @@ public void TestActivityDebuggerProxy() activity.Stop(); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityContextDebuggerDisplay() { ActivityTraceId traceId = ActivityTraceId.CreateRandom(); @@ -2588,7 +2588,7 @@ public void TestActivityContextDebuggerDisplay() Assert.NotNull(debuggerDisplay); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityLinkDebuggerDisplay() { ActivityTraceId traceId = ActivityTraceId.CreateRandom(); @@ -2599,7 +2599,7 @@ public void TestActivityLinkDebuggerDisplay() DebuggerAttributes.ValidateDebuggerDisplayReferences(link); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsDebuggerTypeProxyAttributeSupported))] public void TestActivityEventDebuggerDisplay() { ActivityEvent activityEvent = new ActivityEvent("TestEvent");