未验证 提交 e5c4e140 编写于 作者: A Ankit Jain 提交者: GitHub

[wasm][aot] Disable tests that are failing because they depend on stacktrace API (#54286)

上级 3bbde1ff
...@@ -22,7 +22,7 @@ public void FlushAsync_ReturnsCompletedTaskWhenMaxSizeIfZero() ...@@ -22,7 +22,7 @@ public void FlushAsync_ReturnsCompletedTaskWhenMaxSizeIfZero()
} }
[Fact] [Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/50959", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
public async Task FlushAsync_ThrowsIfWriterReaderWithException() public async Task FlushAsync_ThrowsIfWriterReaderWithException()
{ {
void ThrowTestException() void ThrowTestException()
......
...@@ -215,7 +215,7 @@ void ThrowTestException(Exception ex, Action<Exception> catchAction) ...@@ -215,7 +215,7 @@ void ThrowTestException(Exception ex, Action<Exception> catchAction)
} }
[Fact] [Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/50959", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
public async Task ReadAsync_ThrowsIfWriterCompletedWithException() public async Task ReadAsync_ThrowsIfWriterCompletedWithException()
{ {
ThrowTestException(new InvalidOperationException("Writer exception"), e => _pipe.Writer.Complete(e)); ThrowTestException(new InvalidOperationException("Writer exception"), e => _pipe.Writer.Complete(e));
...@@ -234,7 +234,7 @@ public async Task ReadAsync_ThrowsIfWriterCompletedWithException() ...@@ -234,7 +234,7 @@ public async Task ReadAsync_ThrowsIfWriterCompletedWithException()
} }
[Fact] [Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/50959", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
public async Task WriteAsync_ThrowsIfReaderCompletedWithException() public async Task WriteAsync_ThrowsIfReaderCompletedWithException()
{ {
ThrowTestException(new InvalidOperationException("Reader exception"), e => _pipe.Reader.Complete(e)); ThrowTestException(new InvalidOperationException("Reader exception"), e => _pipe.Reader.Complete(e));
......
...@@ -68,7 +68,7 @@ public TestClass() ...@@ -68,7 +68,7 @@ public TestClass()
} }
[Fact] [Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/51676", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))] [ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
public void StackTraceDoesNotStartWithInternalFrame() public void StackTraceDoesNotStartWithInternalFrame()
{ {
string stackTrace = Environment.StackTrace; string stackTrace = Environment.StackTrace;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
namespace System.Tests namespace System.Tests
{ {
[ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
public class StackTraceHiddenAttributeTests public class StackTraceHiddenAttributeTests
{ {
[Fact] [Fact]
......
...@@ -53,6 +53,7 @@ public static void SetCurrentOrRemoteStackTrace_Invalid_Throws() ...@@ -53,6 +53,7 @@ public static void SetCurrentOrRemoteStackTrace_Invalid_Throws()
} }
[Fact] [Fact]
[ActiveIssue("https://github.com/dotnet/runtime/issues/50957", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsMonoAOT))]
public static void SetCurrentStackTrace_IncludedInExceptionStackTrace() public static void SetCurrentStackTrace_IncludedInExceptionStackTrace()
{ {
Exception e; Exception e;
......
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
<!-- Issue: https://github.com/dotnet/runtime/issues/51678 --> <!-- Issue: https://github.com/dotnet/runtime/issues/51678 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.Loader\tests\System.Runtime.Loader.Tests.csproj" /> <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.Loader\tests\System.Runtime.Loader.Tests.csproj" />
<!-- Issue: https://github.com/dotnet/runtime/issues/51676 --> <!-- Issue: https://github.com/dotnet/runtime/issues/50957 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.Extensions\tests\System.Runtime.Extensions.Tests.csproj" /> <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Runtime.Extensions\tests\System.Runtime.Extensions.Tests.csproj" />
<!-- Issue: https://github.com/dotnet/runtime/issues/52393 --> <!-- Issue: https://github.com/dotnet/runtime/issues/52393 -->
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
<!-- Issue: https://github.com/dotnet/runtime/issues/51961 --> <!-- Issue: https://github.com/dotnet/runtime/issues/51961 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.Json/tests/System.Text.Json.Tests/System.Text.Json.Tests.csproj" /> <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.Json/tests/System.Text.Json.Tests/System.Text.Json.Tests.csproj" />
<!-- Issue: https://github.com/dotnet/runtime/issues/50959 --> <!-- Issue: https://github.com/dotnet/runtime/issues/50957 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.IO.Pipelines\tests\System.IO.Pipelines.Tests.csproj" /> <ProjectExclusions Include="$(MSBuildThisFileDirectory)System.IO.Pipelines\tests\System.IO.Pipelines.Tests.csproj" />
</ItemGroup> </ItemGroup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册