diff options
author | dan miller | 2007-10-20 02:49:29 +0000 |
---|---|---|
committer | dan miller | 2007-10-20 02:49:29 +0000 |
commit | e36d23a85ebff914d74bb541558c2b6082b78edb (patch) | |
tree | 54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/test/exclusive3.test | |
parent | * Fixed an issue whereby avatar chat distances were being calculated against ... (diff) | |
download | opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.zip opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2 opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz |
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/test/exclusive3.test')
-rw-r--r-- | libraries/sqlite/unix/sqlite-3.5.1/test/exclusive3.test | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/test/exclusive3.test b/libraries/sqlite/unix/sqlite-3.5.1/test/exclusive3.test new file mode 100644 index 0000000..941f61b --- /dev/null +++ b/libraries/sqlite/unix/sqlite-3.5.1/test/exclusive3.test | |||
@@ -0,0 +1,59 @@ | |||
1 | # 2007 March 26 | ||
2 | # | ||
3 | # The author disclaims copyright to this source code. In place of | ||
4 | # a legal notice, here is a blessing: | ||
5 | # | ||
6 | # May you do good and not evil. | ||
7 | # May you find forgiveness for yourself and forgive others. | ||
8 | # May you share freely, never taking more than you give. | ||
9 | # | ||
10 | #*********************************************************************** | ||
11 | # | ||
12 | # This file runs the tests in the file ioerr.test with | ||
13 | # exclusive access mode enabled. | ||
14 | # | ||
15 | # $Id: exclusive3.test,v 1.3 2007/03/30 16:01:55 drh Exp $ | ||
16 | |||
17 | set testdir [file dirname $argv0] | ||
18 | source $testdir/tester.tcl | ||
19 | |||
20 | ifcapable {!pager_pragmas} { | ||
21 | finish_test | ||
22 | return | ||
23 | } | ||
24 | |||
25 | rename finish_test really_finish_test2 | ||
26 | proc finish_test {} {} | ||
27 | set ISQUICK 1 | ||
28 | |||
29 | rename sqlite3 real_sqlite3 | ||
30 | proc sqlite3 {args} { | ||
31 | set r [eval "real_sqlite3 $args"] | ||
32 | if { [llength $args] == 2 } { | ||
33 | [lindex $args 0] eval {pragma locking_mode = exclusive} | ||
34 | } | ||
35 | set r | ||
36 | } | ||
37 | |||
38 | rename do_test really_do_test | ||
39 | proc do_test {args} { | ||
40 | set sc [concat really_do_test "exclusive-[lindex $args 0]" \ | ||
41 | [lrange $args 1 end]] | ||
42 | eval $sc | ||
43 | } | ||
44 | |||
45 | #source $testdir/rollback.test | ||
46 | #source $testdir/select1.test | ||
47 | #source $testdir/select2.test | ||
48 | |||
49 | source $testdir/malloc.test | ||
50 | source $testdir/ioerr.test | ||
51 | |||
52 | |||
53 | rename sqlite3 "" | ||
54 | rename real_sqlite3 sqlite3 | ||
55 | rename finish_test "" | ||
56 | rename really_finish_test2 finish_test | ||
57 | rename do_test "" | ||
58 | rename really_do_test do_test | ||
59 | finish_test | ||