Skip to content

Commit 6fc2548

Browse files
authored
Disable some PerformanceCounter tests on more platforms (#64633)
These tests were disabled in #61101 due to random failures like #60933. We are continuing to see these failures on x86 as well.
1 parent c940ff8 commit 6fc2548

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static void PerformanceCounterCategory_GetCounterHelp_Invalid()
7878
}
7979

8080
[ConditionalFact(typeof(Helpers), nameof(Helpers.IsElevatedAndCanWriteAndReadNetPerfCounters))]
81-
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.Is64BitProcess))]
81+
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))]
8282
public static void PerformanceCounterCategory_CategoryType_MultiInstance()
8383
{
8484
string categoryName = nameof(PerformanceCounterCategory_CategoryType_MultiInstance) + "_Category";
@@ -267,7 +267,7 @@ public static void PerformanceCounterCategory_InstanceExists_Invalid()
267267
}
268268

269269
[Fact]
270-
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.Is64BitProcess))]
270+
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))]
271271
public static void PerformanceCounterCategory_InstanceExists_Static()
272272
{
273273
PerformanceCounterCategory pcc = Helpers.RetryOnAllPlatforms(() => new PerformanceCounterCategory("Processor"));
@@ -291,7 +291,7 @@ public static void PerformanceCounterCategory_InstanceExists_StaticInvalid()
291291
}
292292

293293
[Fact]
294-
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.Is64BitProcess))]
294+
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))]
295295
public static void PerformanceCounterCategory_ReadCategory()
296296
{
297297
PerformanceCounterCategory pcc = Helpers.RetryOnAllPlatforms(() => new PerformanceCounterCategory("Processor"));

src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static void PerformanceCounter_CreateCounter_Count0()
3939
}
4040

4141
[Fact]
42-
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.Is64BitProcess))]
42+
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))]
4343
public static void PerformanceCounter_CreateCounter_ProcessorCounter()
4444
{
4545
using (PerformanceCounter counterSample = new PerformanceCounter("Processor", "Interrupts/sec", "0", "."))
@@ -188,7 +188,7 @@ public static void PerformanceCounter_BeginInit_ProcessorCounter()
188188
}
189189

190190
[Fact]
191-
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.Is64BitProcess))]
191+
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))]
192192
public static void PerformanceCounter_BeginInitEndInit_ProcessorCounter()
193193
{
194194
using (PerformanceCounter counterSample = new PerformanceCounter("Processor", "Interrupts/sec", "0", "."))
@@ -270,7 +270,7 @@ public static void PerformanceCounter_Increment_IncrementReadOnly()
270270
}
271271

272272
[ConditionalFact(typeof(Helpers), nameof(Helpers.IsElevatedAndCanWriteAndReadNetPerfCounters))]
273-
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows), nameof(PlatformDetection.Is64BitProcess))]
273+
[ActiveIssue("https://github.com/dotnet/runtime/issues/60933", typeof(PlatformDetection), nameof(PlatformDetection.IsWindows))]
274274
public static void PerformanceCounter_Decrement_DecrementReadOnly()
275275
{
276276
string categoryName = nameof(PerformanceCounter_Decrement_DecrementReadOnly) + "_Category";

0 commit comments

Comments
 (0)