Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Cleanup a test database file prior to using it. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e1bf5e1d06dbe573671c6b5472b45f5b |
User & Date: | mistachkin 2017-10-23 17:36:52.561 |
Context
2017-10-23
| ||
20:17 | In the 'swarmvtabfault' test module, make sure to close the database handle prior to raising an error from the 'not found' callback script. (check-in: f317037b31 user: mistachkin tags: trunk) | |
17:36 | Cleanup a test database file prior to using it. (check-in: e1bf5e1d06 user: mistachkin tags: trunk) | |
11:48 | In lsm (not SQLite), avoid opening the *-shm file before the database file is locked. Otherwise, there is a race condition whereby a connection in another process process may unlink() it while it is still in use. (check-in: c8b8b9b573 user: dan tags: trunk) | |
Changes
Changes to test/swarmvtabfault.test.
︙ | ︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | forcedelete $file sqlite3 dbX $file dbX eval { CREATE TABLE t1(a INTEGER PRIMARY KEY, b) } dbX close } forcedelete test.db1 do_execsql_test 1.0 { ATTACH 'test.db1' AS aux; CREATE TABLE aux.t1(a INTEGER PRIMARY KEY, b); INSERT INTO aux.t1 VALUES(1, NULL); INSERT INTO aux.t1 VALUES(2, NULL); INSERT INTO aux.t1 VALUES(9, NULL); DETACH aux; | > > | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | forcedelete $file sqlite3 dbX $file dbX eval { CREATE TABLE t1(a INTEGER PRIMARY KEY, b) } dbX close } forcedelete test.db1 forcedelete test.db2 do_execsql_test 1.0 { ATTACH 'test.db1' AS aux; CREATE TABLE aux.t1(a INTEGER PRIMARY KEY, b); INSERT INTO aux.t1 VALUES(1, NULL); INSERT INTO aux.t1 VALUES(2, NULL); INSERT INTO aux.t1 VALUES(9, NULL); DETACH aux; |
︙ | ︙ |