Skip to content

Commit bdfb872

Browse files
authored
Re-enable test disabled against #72801 (#117125)
* Re-enable test disabled against #72801 * Explicitly enable EventSourceSupport for NAOT
1 parent 17e1cff commit bdfb872

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/libraries/System.Diagnostics.DiagnosticSource/tests/DiagnosticSourceEventSourceBridgeTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,6 @@ private void AssertActivityMatchesEvent(Activity a, DiagnosticSourceEvent e, boo
13541354
}
13551355

13561356
[Fact]
1357-
[ActiveIssue("https://github.com/dotnet/runtime/issues/72801", typeof(PlatformDetection), nameof(PlatformDetection.IsNativeAot))]
13581357
public void NoExceptionThrownWhenProcessingStaticActivityProperties()
13591358
{
13601359
// Ensures that no exception is thrown when static properties on the Activity type are passed to EventListener.

src/libraries/System.Diagnostics.DiagnosticSource/tests/System.Diagnostics.DiagnosticSource.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppCurrent)-browser;$(NetFrameworkCurrent)</TargetFrameworks>
55
<IncludeRemoteExecutor>true</IncludeRemoteExecutor>
66
<NoWarn>NU1511</NoWarn>
7+
<EventSourceSupport Condition="'$(TestNativeAot)' == 'true'">true</EventSourceSupport>
78
</PropertyGroup>
89
<PropertyGroup Condition="'$(TargetOS)' == 'browser'">
910
<!-- Enable diagnostic features. They will add appropriate RuntimeHostConfigurationOption values to runtime config and ILLink.

0 commit comments

Comments
 (0)