From 5ca1b2b6ff786cd2b26c81c93c661fac2b84d770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro?= Date: Sat, 25 Feb 2017 19:20:53 +0000 Subject: [PATCH] Fixed appveyor tests. --- Tests/Cosmos.TestRunner.UnitTest/MyEngine.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Tests/Cosmos.TestRunner.UnitTest/MyEngine.cs b/Tests/Cosmos.TestRunner.UnitTest/MyEngine.cs index 0fea74a84..0a5b6a4e9 100644 --- a/Tests/Cosmos.TestRunner.UnitTest/MyEngine.cs +++ b/Tests/Cosmos.TestRunner.UnitTest/MyEngine.cs @@ -34,7 +34,7 @@ namespace Cosmos.TestRunner.UnitTest //xEngine.RunWithGDB = true; // If you're working on the compiler (or other lower parts), you can choose to run the compiler in process // one thing to keep in mind though, is that this only works with 1 kernel at a time! - xEngine.RunIL2CPUInProcess = true; + xEngine.RunIL2CPUInProcess = false; xEngine.TraceAssembliesLevel = TraceAssemblies.User; xEngine.EnableStackCorruptionChecks = true; @@ -63,7 +63,15 @@ namespace Cosmos.TestRunner.UnitTest protected override void Log(string message) { // NUnit Issue: https://github.com/nunit/nunit/issues/1952 - //TestContext.WriteLine(string.Concat(DateTime.Now.ToString("hh:mm:ss.ffffff "), new string(' ', mLogLevel * 2), message)); + // Probably it will be fixed in NUnit 3.7.0: https://github.com/nunit/nunit/pull/2055 + try + { + TestContext.WriteLine(string.Concat(DateTime.Now.ToString("hh:mm:ss.ffffff "), new string(' ', mLogLevel * 2), message)); + } + catch + { + + } } } }