Browse Source

Fix HelloWorld PDBGen testcase: use Release configuration in test.

pull/1440/head
Siegfried Pammer 7 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
new CSharpCompilationOptions( new CSharpCompilationOptions(
OutputKind.DynamicallyLinkedLibrary, OutputKind.DynamicallyLinkedLibrary,
platform: Platform.AnyCpu, platform: Platform.AnyCpu,
optimizationLevel: OptimizationLevel.Debug, optimizationLevel: OptimizationLevel.Release,
allowUnsafe: true, allowUnsafe: true,
deterministic: true deterministic: true
)); ));

1
ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs

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

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

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