OLD | NEW |
1 # 2009 July 19 | 1 # 2009 July 19 |
2 # | 2 # |
3 # May you do good and not evil. | 3 # May you do good and not evil. |
4 # May you find forgiveness for yourself and forgive others. | 4 # May you find forgiveness for yourself and forgive others. |
5 # May you share freely, never taking more than you give. | 5 # May you share freely, never taking more than you give. |
6 # | 6 # |
7 #*********************************************************************** | 7 #*********************************************************************** |
8 # This file tests that asynchronous IO is compatible with multi-file | 8 # This file tests that asynchronous IO is compatible with multi-file |
9 # transactions. | 9 # transactions. |
10 # | 10 # |
11 # $Id: async5.test,v 1.1 2009/07/18 11:52:04 danielk1977 Exp $ | 11 # $Id: async5.test,v 1.1 2009/07/18 11:52:04 danielk1977 Exp $ |
12 | 12 |
13 set testdir [file dirname $argv0] | 13 set testdir [file dirname $argv0] |
14 source $testdir/tester.tcl | 14 source $testdir/tester.tcl |
15 | 15 |
16 if {[info commands sqlite3async_initialize] eq ""} { | 16 if {[info commands sqlite3async_initialize] eq ""} { |
17 # The async logic is not built into this system | 17 # The async logic is not built into this system |
18 finish_test | 18 finish_test |
19 return | 19 return |
20 } | 20 } |
21 | 21 |
22 db close | 22 db close |
23 file delete -force test2.db | 23 forcedelete test2.db |
24 sqlite3async_initialize "" 1 | 24 sqlite3async_initialize "" 1 |
25 sqlite3async_control halt never | 25 sqlite3async_control halt never |
26 sqlite3 db test.db | 26 sqlite3 db test.db |
27 | 27 |
28 do_test async5-1.1 { | 28 do_test async5-1.1 { |
29 execsql { | 29 execsql { |
30 ATTACH 'test2.db' AS next; | 30 ATTACH 'test2.db' AS next; |
31 CREATE TABLE main.t1(a, b); | 31 CREATE TABLE main.t1(a, b); |
32 CREATE TABLE next.t2(a, b); | 32 CREATE TABLE next.t2(a, b); |
33 BEGIN; | 33 BEGIN; |
(...skipping 25 matching lines...) Expand all Loading... |
59 | 59 |
60 db close | 60 db close |
61 | 61 |
62 sqlite3async_control halt idle | 62 sqlite3async_control halt idle |
63 sqlite3async_start | 63 sqlite3async_start |
64 sqlite3async_wait | 64 sqlite3async_wait |
65 sqlite3async_control halt never | 65 sqlite3async_control halt never |
66 sqlite3async_shutdown | 66 sqlite3async_shutdown |
67 set sqlite3async_trace 0 | 67 set sqlite3async_trace 0 |
68 finish_test | 68 finish_test |
69 | |
OLD | NEW |