Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add a short pause to force a context swap while waiting for a separate process to clear its lock in the lock4.test script. (CVS 6610) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4357e76d53f692cb7495fbde61b4b758 |
User & Date: | drh 2009-05-06 00:52:41.000 |
Context
2009-05-06
| ||
15:24 | updated vxworks makefile for 3.6.14 release (CVS 6611) (check-in: 5d4bffaabb user: chw tags: trunk) | |
00:52 | Add a short pause to force a context swap while waiting for a separate process to clear its lock in the lock4.test script. (CVS 6610) (check-in: 4357e76d53 user: drh tags: trunk) | |
00:49 | Fix the test case misc3-6.11 so that it works correctly on UTF16 databases after the fix of for ticket #3838, check-in (6603) (CVS 6609) (check-in: c1e739e39b user: drh tags: trunk) | |
Changes
Changes to test/lock4.test.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 2007 April 6 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this script is database locks. # | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # 2007 April 6 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this script is database locks. # # $Id: lock4.test,v 1.10 2009/05/06 00:52:41 drh Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl # Initialize the test.db database so that it is non-empty # |
︙ | ︙ | |||
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | while {[file exists test2.db-journal]} { after 10 } # The other process has committed its transaction on test2.db by # deleting the journal file. But it might retain the lock for a # fraction longer # db2 eval { SELECT * FROM t2 } } {2} do_test lock4-999.1 { rename db2 {} } {} finish_test | > | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | while {[file exists test2.db-journal]} { after 10 } # The other process has committed its transaction on test2.db by # deleting the journal file. But it might retain the lock for a # fraction longer # after 25 db2 eval { SELECT * FROM t2 } } {2} do_test lock4-999.1 { rename db2 {} } {} finish_test |