Browse Source

Fix parameters for StackTests test case.

pull/2873/head
Siegfried Pammer 2 years ago committed by Daniel Grunwald
parent
commit
b9f6c88ed0
  1. 7
      ICSharpCode.Decompiler.Tests/CorrectnessTestRunner.cs

7
ICSharpCode.Decompiler.Tests/CorrectnessTestRunner.cs

@ -317,7 +317,7 @@ namespace ICSharpCode.Decompiler.Tests @@ -317,7 +317,7 @@ namespace ICSharpCode.Decompiler.Tests
public async Task StackTests()
{
// IL contains .corflags = 32BITREQUIRED
await RunIL("StackTests.il", asmOptions: AssemblerOptions.Force32Bit);
await RunIL("StackTests.il", CompilerOptions.Force32Bit, AssemblerOptions.Force32Bit);
}
[Test]
@ -483,6 +483,11 @@ namespace ICSharpCode.Decompiler.Tests @@ -483,6 +483,11 @@ namespace ICSharpCode.Decompiler.Tests
string outputFile = null;
CompilerResults decompiledOutputFile = null;
bool optionsForce32Bit = options.HasFlag(CompilerOptions.Force32Bit);
bool asmOptionsForce32Bit = asmOptions.HasFlag(AssemblerOptions.Force32Bit);
Assert.AreEqual(optionsForce32Bit, asmOptionsForce32Bit, "Inconsistent architecture.");
try
{
options |= CompilerOptions.UseTestRunner;

Loading…
Cancel
Save