Blob Blame History Raw
diff -up javasqlite-20080420/Makefile.in~ javasqlite-20080420/Makefile.in
--- javasqlite-20080420/Makefile.in~	2008-04-07 08:23:47.000000000 +0300
+++ javasqlite-20080420/Makefile.in	2008-08-30 23:49:36.000000000 +0300
@@ -150,6 +150,8 @@ test:
 	$(JAVAC) -classpath sqlite.jar:$(PWD) test.java
 	$(JAVA_RUN) -classpath sqlite.jar:$(PWD) \
 	    -DSQLite.library.path=$(PWD)/.libs test
+
+test2:	test
 	$(JAVA_RUN) -classpath sqlite.jar:$(PWD) \
 	    -DSQLite.library.path=$(PWD)/.libs test db2
 
diff -up javasqlite-20080420/test3.java~ javasqlite-20080420/test3.java
--- javasqlite-20080420/test3.java~	2008-04-05 10:30:10.000000000 +0300
+++ javasqlite-20080420/test3.java	2008-08-30 23:48:47.000000000 +0300
@@ -77,6 +77,7 @@ public class test3 implements SQLite.Tra
     }
 
     public static void main(String args[]) {
+        boolean error = true;
         test3 T = new test3();
 	System.out.println("LIB version: " + SQLite.Database.version());
 	SQLite.Database db = new SQLite.Database();
@@ -145,6 +146,7 @@ public class test3 implements SQLite.Tra
 	    T.do_exec(db, "drop table TEST3");
 	    T.do_exec(db, "drop table B");
 	    T.do_select(db, "select * from sqlite_master");
+	    error = false;
 	} catch (java.lang.Exception e) {
 	    System.err.println("error: " + e);
 	    e.printStackTrace();
@@ -159,9 +161,13 @@ public class test3 implements SQLite.Tra
 		db.close();
 	    } catch(java.lang.Exception e) {
 		System.err.println("error: " + e);
+		error = true;
 	    } finally {
 		System.err.println("done.");
 	    }
 	}
+	if (error) {
+	    System.exit(1);
+	}
     }
 }
diff -up javasqlite-20080420/test.java~ javasqlite-20080420/test.java
--- javasqlite-20080420/test.java~	2007-06-29 12:52:46.000000000 +0300
+++ javasqlite-20080420/test.java	2008-08-30 23:48:47.000000000 +0300
@@ -69,6 +69,7 @@ public class test implements SQLite.Call
     }
 
     public static void main(String args[]) {
+	boolean error = true;
 	System.out.println("LIB version: " + SQLite.Database.version());
 	SQLite.Database db = new SQLite.Database();
 	try {
@@ -114,6 +115,7 @@ public class test implements SQLite.Call
 		}
 	    } while (vm.compile());
 	    db.close();
+	    error = false;
 	    System.out.println("An exception is expected from now on.");
 	    System.out.println("==== local callback ====");
 	    db.exec("select * from sqlite_master", new test());
@@ -128,6 +130,9 @@ public class test implements SQLite.Call
 	    } finally {
 		System.err.println("done.");
 	    }
+	    if (error) {
+		System.exit(1);
+	    }
 	}
 	
     }