You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2019/04/26 16:15:32 UTC

[ignite] 01/01: Testing hypothesis: Don't write to StdErr

This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch dotnet-linux-fail-test
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit bf2ee85c055ace613a7c448e7f3976894cb51f0b
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Fri Apr 26 19:15:19 2019 +0300

    Testing hypothesis: Don't write to StdErr
---
 .../dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
index 512afed..e41ea3c 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/Jni/ConsoleWriter.cs
@@ -56,13 +56,13 @@ namespace Apache.Ignite.Core.Impl.Unmanaged.Jni
             Justification = "Only instance methods can be called across AppDomain boundaries.")]
         public void Write(string message, bool isError)
         {
-            if (_suppressIllegalAccessWarnings && isError && IsKnownWarning(message))
+            // Testing hypothesis that StdErr is causing test run abortion.
+            if (isError)
             {
-                return;
+                message = "|ERR|: " + message;
             }
 
-            var target = isError ? Console.Error : Console.Out;
-            target.Write(message);
+            Console.Out.Write(message);
         }
 
         /** <inheritdoc /> */