3 # May you do good and not evil.
4 # May you find forgiveness for yourself and forgive others.
5 # May you share freely, never taking more than you give.
7 #***********************************************************************
8 # This file tests that asynchronous IO is compatible with multi-file
11 # $Id: async5.test,v 1.1 2009/07/18 11:52:04 danielk1977 Exp $
13 set testdir [file dirname $argv0]
14 source $testdir/tester.tcl
16 if {[info commands sqlite3async_initialize] eq ""} {
17 # The async logic is not built into this system
24 sqlite3async_initialize "" 1
25 sqlite3async_control halt never
30 ATTACH 'test2.db' AS next;
31 CREATE TABLE main.t1(a, b);
32 CREATE TABLE next.t2(a, b);
34 INSERT INTO t1 VALUES(1, 2);
35 INSERT INTO t2 VALUES(3, 4);
40 execsql { SELECT * FROM t1 }
43 execsql { SELECT * FROM t2 }
48 INSERT INTO t1 VALUES('a', 'b');
49 INSERT INTO t2 VALUES('c', 'd');
54 execsql { SELECT * FROM t1 }
57 execsql { SELECT * FROM t2 }
62 sqlite3async_control halt idle
65 sqlite3async_control halt never
67 set sqlite3async_trace 0