Skip to content

Commit a82d92c

Browse files
authored
Disable failing EventLogSession.GetProviderNames test (#64780)
* Disable failing EventLogSession.GetProviderNames test
1 parent 959a13f commit a82d92c

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Windows.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ public static bool IsInAppContainer
242242

243243
public static bool CanRunImpersonatedTests => PlatformDetection.IsNotWindowsNanoServer && PlatformDetection.IsWindowsAndElevated;
244244

245+
public static bool IsWindowsX86OrX64 => PlatformDetection.IsWindows && (PlatformDetection.IsX86Process || PlatformDetection.IsX64Process);
246+
245247
private static int s_isWindowsElevated = -1;
246248
public static bool IsWindowsAndElevated
247249
{

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static partial class PlatformDetection
5353
public static bool IsArmOrArm64Process => IsArmProcess || IsArm64Process;
5454
public static bool IsNotArmNorArm64Process => !IsArmOrArm64Process;
5555
public static bool IsArmv6Process => (int)RuntimeInformation.ProcessArchitecture == 7; // Architecture.Armv6
56+
public static bool IsX64Process => RuntimeInformation.ProcessArchitecture == Architecture.X64;
5657
public static bool IsX86Process => RuntimeInformation.ProcessArchitecture == Architecture.X86;
5758
public static bool IsNotX86Process => !IsX86Process;
5859
public static bool IsArgIteratorSupported => IsMonoRuntime || (IsWindows && IsNotArmProcess && !IsNativeAot);

src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/ProviderMetadataTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System;
45
using System.Collections.Generic;
56
using System.Diagnostics.Eventing.Reader;
67
using System.Globalization;
@@ -90,6 +91,7 @@ public void ProviderNameTests(bool noProviderName)
9091
}
9192

9293
[ConditionalFact(typeof(Helpers), nameof(Helpers.SupportsEventLogs))]
94+
[ActiveIssue("https://github.com/dotnet/runtime/issues/64153", typeof(PlatformDetection), nameof(PlatformDetection.IsWindowsX86OrX64))]
9395
public void GetProviderNames_AssertProperties()
9496
{
9597
const string Prefix = "win:";

0 commit comments

Comments
 (0)