changeset 486:65d3f718fe25

Revert "redirect errors to stderr and exit abnormally" This reverts commit 1301c52cd1f27d5049cb9948e653969be2f18612.
author svetlin <svetlin.stalinov@monetdbsolutions.com>
date Thu, 15 Apr 2021 16:11:29 +0200 (2021-04-15)
parents f20f0a0044bf
children 35592dc59ecb
files tests/JDBC_API_Tester.java
diffstat 1 files changed, 10 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- 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());
 		}