Changeset: 1094308ceb9b for monetdb-java
URL: https://dev.monetdb.org/hg/monetdb-java/rev/1094308ceb9b
Modified Files:
        tests/JDBC_API_Tester.java
        tests/OnClientTester.java
        tests/SQLcopyinto.java
Branch: default
Log Message:

Do not pass negative argument to System.exit()


diffs (54 lines):

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
@@ -83,7 +83,7 @@ public final class JDBC_API_Tester {
        public static void main(String[] args) throws Exception {
                if (args.length < 1) {
                        System.err.println("Error: Missing required connection 
URL as first startup argument!");
-                       System.exit(-1);
+                       System.exit(1);
                }
 
                final String con_URL = args[0];
@@ -169,7 +169,7 @@ public final class JDBC_API_Tester {
                jt.closeConx(jt.con);
 
                if (jt.foundDifferences)
-                       System.exit(-1);
+                       System.exit(1);
 
                ConnectionTests.runTests(con_URL);
 
@@ -178,7 +178,7 @@ public final class JDBC_API_Tester {
                        OnClientTester oct = new OnClientTester(con_URL, 0);
                        int failures = oct.runTests();
                        if (failures > 0)
-                               System.exit(-1);
+                               System.exit(1);
                }
        }
 
diff --git a/tests/OnClientTester.java b/tests/OnClientTester.java
--- a/tests/OnClientTester.java
+++ b/tests/OnClientTester.java
@@ -109,7 +109,7 @@ public final class OnClientTester {
                OnClientTester tester = new OnClientTester(jdbcUrl, verbosity, 
selectedTests);
                int failures = tester.runTests();
                if (failures > 0)
-                       System.exit(-1);
+                       System.exit(1);
        }
 
        boolean isSelected(String name) {
diff --git a/tests/SQLcopyinto.java b/tests/SQLcopyinto.java
--- a/tests/SQLcopyinto.java
+++ b/tests/SQLcopyinto.java
@@ -32,7 +32,7 @@ public final class SQLcopyinto {
                if (args.length == 0) {
                        System.err.println("Error: missing startup argument: 
the jdbc connection url !");
                        System.err.println("Usage: java -cp 
monetdb-jdbc-3.0.jre8.jar:. SQLcopyinto 
\"jdbc:monetdb://localhost:50000/demo?user=monetdb&password=monetdb\"");
-                       System.exit(-1);
+                       System.exit(1);
                }
                String jdbc_url = args[0];
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to