# HG changeset patch # User Martin van Dinther <martin.van.dinther@monetdbsolutions.com> # Date 1636570616 -3600 # Node ID 73f4f30e4c62f104754bc972de85e54cfb5f5845 # Parent 718492fb87147161859dcbad7e724c97677742b5 For testweb failures need to be written to err diff --git a/tests/TestRunner.java b/tests/TestRunner.java --- a/tests/TestRunner.java +++ b/tests/TestRunner.java @@ -142,13 +142,13 @@ public class TestRunner { if (verbosity >= VERBOSITY_SHOW_ALL) dumpOutput(testName); } catch (Failure e) { - System.out.println(); - System.out.println("Test " + testName + " failed"); + System.err.println(); + System.err.println("Test " + testName + " failed"); dumpOutput(testName); } catch (Exception e) { - System.out.println(); - System.out.println("Test " + testName + " failed:"); - e.printStackTrace(System.out); + System.err.println(); + System.err.println("Test " + testName + " failed:"); + e.printStackTrace(System.err); dumpOutput(testName); // Show the inner bits of the exception again, they may have scrolled off screen Throwable t = e; @@ -157,7 +157,7 @@ public class TestRunner { } System.out.println("Innermost cause was " + t); if (t.getStackTrace().length > 0) { - System.out.println(" at " + t.getStackTrace()[0]); + System.err.println(" at " + t.getStackTrace()[0]); } } finally { watchDog.setContext(null);