Show
Ignore:
Timestamp:
08/18/09 13:15:00 (3 years ago)
Author:
leo
Message:

added pure-java mode test

Location:
XerialJ/trunk/sqlite-jdbc
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • XerialJ/trunk/sqlite-jdbc/Makefile.package

    r3395 r3542  
    7070        ssh $(LINUX_SERVER) "source .zprofile && source /etc/profile.d/java.sh && cd $(LINUX_WORK) && $(TEST_CMD)" 
    7171        ssh $(AMD_SERVER) "source .zprofile && cd $(AMD_WORK) && $(TEST_CMD)" 
     72        ssh $(WIN_SERVER) "source .zprofile && cd $(WIN_WORK) && $(TEST_CMD) -DargLine='-Dsqlite.purejava=true'" 
    7273 
    7374         
  • XerialJ/trunk/sqlite-jdbc/src/main/java/org/sqlite/NestedDB.java

    r3531 r3542  
    161161 
    162162    @Override 
    163     protected int _exec(String sql) throws SQLException 
    164     { 
    165         int passback = rt.malloc(4); 
     163    protected synchronized int _exec(String sql) throws SQLException 
     164    { 
     165        int passback = rt.xmalloc(4); 
    166166        int str = rt.strdup(sql); 
    167167        int status = call("sqlite3_exec", handle, str, 0, 0, passback); 
     
    169169        { 
    170170            String errorMessage = cstring(passback); 
    171             call("sqlite3_free", passback); 
     171            call("sqlite3_free", deref(passback)); 
    172172            rt.free(passback); 
    173173            throwex(status, errorMessage); 
  • XerialJ/trunk/sqlite-jdbc/src/test/java/org/sqlite/TransactionTest.java

    r2990 r3542  
    11package org.sqlite; 
    22 
    3 import static org.junit.Assert.assertEquals; 
    4 import static org.junit.Assert.assertFalse; 
    5 import static org.junit.Assert.assertTrue; 
     3import static org.junit.Assert.*; 
    64 
    75import java.io.File; 
     
    3735    { 
    3836        Class.forName("org.sqlite.JDBC"); 
     37        System.out.println("running in " + (SQLiteJDBCLoader.isNativeMode() ? "native" : "pure-java") + " mode"); 
    3938    } 
    4039