SQLite Android Bindings
Check-in [0efba721fe]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a broken test case in the "customsqlitetest" application.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0efba721fe391159a2e104307d038ed79c3c1fd0
User & Date: dan 2019-11-20 14:46:50
Context
2019-11-22
01:22
Allow SQLiteDatabase.execSQL to be used to execute PRAGMA statements, even if they return a value. Leaf check-in: dfed6feb2b user: dan tags: trunk
2019-11-20
14:46
Fix a broken test case in the "customsqlitetest" application. check-in: 0efba721fe user: dan tags: trunk
2019-10-11
13:34
Upgrade this project to SQLite version 3.30.1. check-in: eeab9f03e8 user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to sqlite3test/src/main/java/org/sqlite/customsqlitetest/MainActivity.java.

154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
        for(i=0; i<20 && t.isAlive(); i++){
            try { Thread.sleep(100); } catch(InterruptedException e) {}
        }
        if( t.isAlive() ){ res = "blocked"; }

        db.endTransaction();
        try { t.join(); } catch(InterruptedException e) {}
        if( SQLiteDatabase.hasCodec() ){
            test_result("thread_test_2", res, "blocked", t0);
        } else {
            test_result("thread_test_2", res, "concurrent", t0);
        }
        db.close();
    }

    /*
    ** Use a Cursor to loop through the results of a SELECT query.
    */
    public void csr_test_2() throws Exception {







<
<
<
|
<







154
155
156
157
158
159
160



161

162
163
164
165
166
167
168
        for(i=0; i<20 && t.isAlive(); i++){
            try { Thread.sleep(100); } catch(InterruptedException e) {}
        }
        if( t.isAlive() ){ res = "blocked"; }

        db.endTransaction();
        try { t.join(); } catch(InterruptedException e) {}



        test_result("thread_test_2", res, "concurrent", t0);

        db.close();
    }

    /*
    ** Use a Cursor to loop through the results of a SELECT query.
    */
    public void csr_test_2() throws Exception {