# HG changeset patch # User svetlin <svetlin.stalinov@monetdbsolutions.com> # Date 1618495889 -7200 # Node ID 65d3f718fe25b1bb2eed259f2206edc9bda6552a # Parent f20f0a0044bf44e6848525dc4da0767246e1c30a Revert "redirect errors to stderr and exit abnormally" This reverts commit 1301c52cd1f27d5049cb9948e653969be2f18612. diff --git a/tests/JDBC_API_Tester.java b/tests/JDBC_API_Tester.java --- a/tests/JDBC_API_Tester.java +++ b/tests/JDBC_API_Tester.java @@ -40,7 +40,6 @@ import org.monetdb.jdbc.types.URL; final public class JDBC_API_Tester { StringBuilder sb; // buffer to collect the test output final static int sbInitLen = 3712; - int err_count = 0; Connection con; // main connection shared by all tests public static void main(String[] args) throws Exception { @@ -99,9 +98,6 @@ final public class JDBC_API_Tester { jt.SQLcopyinto(); jt.closeConx(jt.con); - - if (jt.err_count > 0) System.exit(-1); - } private void Test_Cautocommit(String arg0) { @@ -5047,20 +5043,19 @@ final public class JDBC_API_Tester { private void compareExpectedOutput(String testname, String expected) { if (!expected.equals(sb.toString())) { - this.err_count +=1; - System.err.print("Test '"); - System.err.print(testname); + System.out.print("Test '"); + System.out.print(testname); if (!testname.endsWith(")")) - System.err.print("()"); - System.err.println("' produced different output!"); - System.err.println("Expected:"); - System.err.println(expected); - System.err.println("Gotten:"); - System.err.println(sb); - System.err.println(); + System.out.print("()"); + System.out.println("' produced different output!"); + System.out.println("Expected:"); + System.out.println(expected); + System.out.println("Gotten:"); + System.out.println(sb); + System.out.println(); } if (sb.length() > sbInitLen) { - System.err.println("Test '" + testname + System.out.println("Test '" + testname + "' produced output > " + sbInitLen + " chars! Enlarge sbInitLen to: " + sb.length()); }