Browse Source

Random_TestCase_1 should succeed

pull/734/head
Daniel Grunwald 9 years ago
parent
commit
4cf1406e42
  1. 1
      .gitignore
  2. 5
      ICSharpCode.Decompiler/IL/Instructions/Block.cs
  3. 6
      ICSharpCode.Decompiler/Tests/RoundtripAssembly.cs
  4. 2
      NRefactory

1
.gitignore vendored

@ -13,3 +13,4 @@ _ReSharper*/ @@ -13,3 +13,4 @@ _ReSharper*/
*.patch
/packages
*.ide/
/ICSharpCode.Decompiler/Tests/TestCases/*.exe

5
ICSharpCode.Decompiler/IL/Instructions/Block.cs

@ -38,6 +38,11 @@ namespace ICSharpCode.Decompiler.IL @@ -38,6 +38,11 @@ namespace ICSharpCode.Decompiler.IL
/// For blocks returning void, the FinalInstruction will usually be 'nop'.
/// </para>
///
/// There are three different uses for blocks:
/// 1) Blocks in block containers. Used as targets for Branch instructions.
/// 2) Blocks to group a bunch of statements, e.g. the TrueInst of an IfInstruction.
/// 3) Inline blocks that evaluate to a value, e.g. for array initializers.
///
/// TODO: consider splitting inline blocks (with FinalInstruction) from those
/// used in containers for control flow purposes -- these are very different things
/// which should not share a class.

6
ICSharpCode.Decompiler/Tests/RoundtripAssembly.cs

@ -88,11 +88,7 @@ namespace ICSharpCode.Decompiler.Tests @@ -88,11 +88,7 @@ namespace ICSharpCode.Decompiler.Tests
[Test]
public void Random_TestCase_1()
{
try {
RunWithOutput("Random Tests\\TestCases", "TestCase-1.exe");
} catch (CompilationFailedException ex) {
Assert.Ignore(ex.Message);
}
RunWithOutput("Random Tests\\TestCases", "TestCase-1.exe");
}
void RunWithTest(string dir, string fileToRoundtrip, string fileToTest)

2
NRefactory

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 96c2f37d23dac28119efa02920aaf2c88c4fdcad
Subproject commit 0254d4899eb45422ecca76fdb41c356976f720d5
Loading…
Cancel
Save