Event Log Tests disabled for Windows 7 (dotnet/corefx#24845)
authorAnirudh Agnihotry <anirudhagnihotry098@gmail.com>
Tue, 24 Oct 2017 22:08:14 +0000 (15:08 -0700)
committerStephen Toub <stoub@microsoft.com>
Tue, 24 Oct 2017 22:08:14 +0000 (18:08 -0400)
* Event Log Tests disabled for Windows 7

* review completed

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

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

index a1208b8..056a3a7 100644 (file)
@@ -7,6 +7,6 @@ namespace System.Diagnostics.Tests
     internal class Helpers
     {
         public static bool IsElevatedAndSupportsEventLogs { get => AdminHelpers.IsProcessElevated() && SupportsEventLogs; }
-        public static bool SupportsEventLogs { get => PlatformDetection.IsNotWindowsNanoServer; }
+        public static bool SupportsEventLogs { get => PlatformDetection.IsNotWindowsNanoServer && !PlatformDetection.IsWindows7; }
     }
 }