Skip to content

Commit

Permalink
[wasm] Disable failing debugger test
Browse files Browse the repository at this point in the history
Issue: dotnet#64188

`DebuggerTests.AssignmentTests.InspectVariableBeforeAndAfterAssignment(clazz: "MONO_TYPE_ENUM"...`

- And add some debug bits to help with debugging this on CI.
  • Loading branch information
radical committed Oct 5, 2022
1 parent 3e89264 commit d4065f9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/mono/wasm/debugger/DebuggerTestSuite/AssignmentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Newtonsoft.Json.Linq;
using Xunit;
using Xunit.Abstractions;
using Xunit.Sdk;

namespace DebuggerTests
{
Expand All @@ -22,7 +23,10 @@ public AssignmentTests(ITestOutputHelper testOutput)
{ "MONO_TYPE_BOOLEAN", TBool(default), TBool(true), "DebuggerTests.StepInTest<bool>.TestedMethod"},
{ "MONO_TYPE_CHAR", TChar('\u0000'), TChar('a'), "DebuggerTests.StepInTest<char>.TestedMethod"},
{ "MONO_TYPE_STRING", TString(default), TString("hello"), "DebuggerTests.StepInTest<string>.TestedMethod"},
{ "MONO_TYPE_ENUM", TEnum("DebuggerTests.RGB", "Red"), TEnum("DebuggerTests.RGB", "Blue"), "DebuggerTests.StepInTest<DebuggerTests.RGB>.TestedMethod"},

// [ActiveIssue("https://github.com/dotnet/runtime/issues/64188")]
// { "MONO_TYPE_ENUM", TEnum("DebuggerTests.RGB", "Red"), TEnum("DebuggerTests.RGB", "Blue"), "DebuggerTests.StepInTest<DebuggerTests.RGB>.TestedMethod"},

{ "MONO_TYPE_ARRAY", TObject("byte[]", is_null: true), TArray("byte[]", "byte[2]"), "DebuggerTests.StepInTest<byte[]>.TestedMethod"},
{ "MONO_TYPE_VALUETYPE", TValueType("DebuggerTests.Point"), TValueType("DebuggerTests.Point"), "DebuggerTests.StepInTest<DebuggerTests.Point>.TestedMethod"},
{ "MONO_TYPE_VALUETYPE2", TValueType("System.Decimal","0"), TValueType("System.Decimal", "1.1"), "DebuggerTests.StepInTest<System.Decimal>.TestedMethod"},
Expand Down Expand Up @@ -55,7 +59,9 @@ async Task InspectVariableBeforeAndAfterAssignment(string clazz, JObject checkDe
await StepAndCheck(StepKind.Into, "dotnet://debugger-test.dll/debugger-assignment-test.cs", -1, -1, methodName,
locals_fn: async (locals) =>
{
Assert.Equal(2, locals.Count());
int numLocals = locals.Count();
if (numLocals != 2)
throw new XunitException($"Expected two locals but got {numLocals}. Locals: {locals}");
await Check(locals, "r", checkDefault);
await Task.CompletedTask;
}
Expand All @@ -65,7 +71,9 @@ await StepAndCheck(StepKind.Into, "dotnet://debugger-test.dll/debugger-assignmen
await StepAndCheck(StepKind.Over, "dotnet://debugger-test.dll/debugger-assignment-test.cs", -1, -1, methodName, times: 3,
locals_fn: async (locals) =>
{
Assert.Equal(2, locals.Count());
int numLocals = locals.Count();
if (numLocals != 2)
throw new XunitException($"Expected two locals but got {numLocals}. Locals: {locals}");
await Check(locals, "r", checkValue);
await Task.CompletedTask;
}
Expand Down

0 comments on commit d4065f9

Please sign in to comment.