From 6cefb0ae032ca8b67204f3e43c6d7b284701734e Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 25 Jun 2016 20:21:58 +0900 Subject: [PATCH] Adjust exit codes of remaining test cases (fixes build) --- ICSharpCode.Decompiler/Tests/TestCases/ControlFlow.cs | 3 ++- ICSharpCode.Decompiler/Tests/TestCases/InitializerTests.cs | 4 +++- ICSharpCode.Decompiler/Tests/TestCases/PropertiesAndEvents.cs | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ICSharpCode.Decompiler/Tests/TestCases/ControlFlow.cs b/ICSharpCode.Decompiler/Tests/TestCases/ControlFlow.cs index c30260a50..dd81e6443 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/ControlFlow.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/ControlFlow.cs @@ -34,7 +34,8 @@ class ControlFlow NormalIf3("test", ref result); Test("none", ref result); Test("test", ref result); - return result; + Console.WriteLine(result); + return 0; } static void EmptyIf(string input, ref int result) diff --git a/ICSharpCode.Decompiler/Tests/TestCases/InitializerTests.cs b/ICSharpCode.Decompiler/Tests/TestCases/InitializerTests.cs index 11b94adba..038bda3e6 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/InitializerTests.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/InitializerTests.cs @@ -27,7 +27,9 @@ public class InitializerTests test[0,0] = 0; test[0,1] = 1; test[0,2] = 2; - return test.Length + test[0, 0] + test[0, 2]; + int result = test.Length + test[0, 0] + test[0, 2]; + Console.WriteLine(result); + return 0; } private enum MyEnum diff --git a/ICSharpCode.Decompiler/Tests/TestCases/PropertiesAndEvents.cs b/ICSharpCode.Decompiler/Tests/TestCases/PropertiesAndEvents.cs index dd96da37b..0b833d681 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/PropertiesAndEvents.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/PropertiesAndEvents.cs @@ -17,7 +17,7 @@ namespace PropertiesAndEvents i[1] = 2; Console.WriteLine("{0} {1}", i[0], i[5]); Console.WriteLine("PI² = {0}", i.PISquare); - return -1; + return 0; } }