skip tests failing on Windows ARM64 (dotnet/corefx#35825)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Wed, 6 Mar 2019 23:11:10 +0000 (15:11 -0800)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2019 23:11:10 +0000 (15:11 -0800)
* skip tests failing on Windows ARM64

* fix CanWriteToPerfCounters condition to properly exclude run on arm

Commit migrated from https://github.com/dotnet/corefx/commit/229fad3002e6f986b3ae6eab08bc023abaf99bec

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

index 51310d8..0a9cabd 100644 (file)
@@ -13,7 +13,7 @@ namespace System.Diagnostics.Tests
     internal class Helpers
     {
         public static bool IsElevatedAndCanWriteToPerfCounters { get => AdminHelpers.IsProcessElevated() && CanWriteToPerfCounters; }
-        public static bool CanWriteToPerfCounters { get => PlatformDetection.IsNotWindowsNanoServer; }
+        public static bool CanWriteToPerfCounters { get => PlatformDetection.IsNotWindowsNanoServer && PlatformDetection.IsNotArmNorArm64Process; }
 
         public static string CreateCategory(string name, PerformanceCounterCategoryType categoryType)
         {