Browse Source

Fix HelloWorld PDBGen testcase: use Release configuration in test.

pull/1440/head
Siegfried Pammer 6 years ago
parent
commit
b14c05803f
  1. 2
      ICSharpCode.Decompiler.Tests/Helpers/Tester.cs
  2. 1
      ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs
  3. 14
      ICSharpCode.Decompiler.Tests/TestCases/PdbGen/HelloWorld.xml

2
ICSharpCode.Decompiler.Tests/Helpers/Tester.cs

@ -366,7 +366,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers @@ -366,7 +366,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers
new CSharpCompilationOptions(
OutputKind.DynamicallyLinkedLibrary,
platform: Platform.AnyCpu,
optimizationLevel: OptimizationLevel.Debug,
optimizationLevel: OptimizationLevel.Release,
allowUnsafe: true,
deterministic: true
));

1
ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs

@ -24,7 +24,6 @@ namespace ICSharpCode.Decompiler.Tests @@ -24,7 +24,6 @@ namespace ICSharpCode.Decompiler.Tests
static readonly string TestCasePath = Tester.TestCasePath + "/PdbGen";
[Test]
[Ignore("Needs adjustments in generator")]
public void HelloWorld()
{
TestGeneratePdb();

14
ICSharpCode.Decompiler.Tests/TestCases/PdbGen/HelloWorld.xml

@ -20,19 +20,17 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.PdbGen @@ -20,19 +20,17 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.PdbGen
<methods>
<method containingType="ICSharpCode.Decompiler.Tests.TestCases.PdbGen.HelloWorld" name="Main" parameterNames="args" token="0x6000001">
<sequencePoints>
<entry offset="0x0" startLine="8" startColumn="3" endLine="8" endColumn="4" document="1" />
<entry offset="0x1" startLine="9" startColumn="4" endLine="9" endColumn="22" document="1" />
<entry offset="0x7" startLine="10" startColumn="4" endLine="10" endColumn="38" document="1" />
<entry offset="0x12" startLine="11" startColumn="4" endLine="11" endColumn="22" document="1" />
<entry offset="0x18" startLine="12" startColumn="3" endLine="12" endColumn="4" document="1" />
<entry offset="0x0" startLine="9" startColumn="4" endLine="9" endColumn="22" document="1" />
<entry offset="0x6" startLine="10" startColumn="4" endLine="10" endColumn="38" document="1" />
<entry offset="0x10" startLine="11" startColumn="4" endLine="11" endColumn="22" document="1" />
<entry offset="0x16" startLine="12" startColumn="3" endLine="12" endColumn="4" document="1" />
</sequencePoints>
<scope startOffset="0x0" endOffset="0x19" />
<scope startOffset="0x0" endOffset="0x17" />
</method>
</methods>
<method-spans>
<method declaringType="ICSharpCode.Decompiler.Tests.TestCases.PdbGen.HelloWorld" methodName="Main" parameterNames="args" token="0x6000001">
<document startLine="8" endLine="12" />
<document startLine="9" endLine="12" />
</method>
</method-spans>
</symbols>
Loading…
Cancel
Save