Disable EnsureCleanEnvironment on wasm since it can't possibly work (#81893)
authorKatelyn Gadd <kg@luminance.org>
Thu, 9 Feb 2023 19:28:55 +0000 (11:28 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 19:28:55 +0000 (11:28 -0800)
The related test is also skipped on CI thanks to https://github.com/dotnet/runtime/pull/81860

src/tests/tracing/eventpipe/common/IpcTraceTest.cs

index 17c0562..9cfd3c8 100644 (file)
@@ -344,7 +344,7 @@ namespace Tracing.Tests.Common
         // the process that created them, so we don't need to check on that platform.
         static public bool EnsureCleanEnvironment()
         {
-            if (!OperatingSystem.IsWindows())
+            if (!OperatingSystem.IsWindows() && !OperatingSystem.IsBrowser())
             {
                 Func<(IEnumerable<IGrouping<int,FileInfo>>, List<int>)> getPidsAndSockets = () =>
                 {