Try fixing WriteDumpTests
authorSung Yoon Whang <suwhang@microsoft.com>
Thu, 23 Jul 2020 20:00:51 +0000 (13:00 -0700)
committerSung Yoon Whang <suwhang@microsoft.com>
Thu, 23 Jul 2020 20:01:43 +0000 (13:01 -0700)
src/tests/Microsoft.Diagnostics.NETCore.Client/WriteDumpTests.cs

index 142c7ae325fe60d30d05e4be50099997695aeacf..4500a3da5b704ca2a9b3d966ec7d7189b70d40e4 100644 (file)
@@ -39,7 +39,7 @@ namespace Microsoft.Diagnostics.NETCore.Client
                 runner.Start(3000);
                 DiagnosticsClient client = new DiagnosticsClient(runner.Pid);
 
-                if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+                if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Environment.Version.ToString().StartsWith("3"))
                 {
                     Assert.Throws<PlatformNotSupportedException>(() => client.WriteDump(DumpType.Normal, dumpPath));
                 }