Change the OS interface layer to use traditional direct function call
implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) FossilOrigin-Name: 2529c2e11fa1d345ec61f647e4f6fae20a7133d6
This commit is contained in:
+23
-22
@@ -15,7 +15,7 @@
|
||||
# The tests in this file use special facilities that are only
|
||||
# available in the SQLite test fixture.
|
||||
#
|
||||
# $Id: ioerr.test,v 1.21 2005/08/20 13:47:42 drh Exp $
|
||||
# $Id: ioerr.test,v 1.22 2006/01/06 14:32:20 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -133,28 +133,29 @@ do_ioerr_test ioerr-5 -sqlprep {
|
||||
|
||||
# Test IO errors when replaying two hot journals from a 2-file
|
||||
# transaction. This test only runs on UNIX.
|
||||
if {$tcl_platform(platform)=="unix" && [file exists ./crashtest]
|
||||
&& ![catch {sqlite3 -has-codec} r] && !$r} {
|
||||
do_ioerr_test ioerr-6 -tclprep {
|
||||
execsql {
|
||||
ATTACH 'test2.db' as aux;
|
||||
CREATE TABLE tx(a, b);
|
||||
CREATE TABLE aux.ty(a, b);
|
||||
ifcapable crashtest {
|
||||
if {![catch {sqlite3 -has_codec} r] && !$r} {
|
||||
do_ioerr_test ioerr-6 -tclprep {
|
||||
execsql {
|
||||
ATTACH 'test2.db' as aux;
|
||||
CREATE TABLE tx(a, b);
|
||||
CREATE TABLE aux.ty(a, b);
|
||||
}
|
||||
set rc [crashsql 2 test2.db-journal {
|
||||
ATTACH 'test2.db' as aux;
|
||||
PRAGMA cache_size = 10;
|
||||
BEGIN;
|
||||
CREATE TABLE aux.t2(a, b, c);
|
||||
CREATE TABLE t1(a, b, c);
|
||||
COMMIT;
|
||||
}]
|
||||
if {$rc!="1 {child process exited abnormally}"} {
|
||||
error "Wrong error message: $rc"
|
||||
}
|
||||
} -sqlbody {
|
||||
SELECT * FROM sqlite_master;
|
||||
SELECT * FROM aux.sqlite_master;
|
||||
}
|
||||
set rc [crashsql 2 test2.db-journal {
|
||||
ATTACH 'test2.db' as aux;
|
||||
PRAGMA cache_size = 10;
|
||||
BEGIN;
|
||||
CREATE TABLE aux.t2(a, b, c);
|
||||
CREATE TABLE t1(a, b, c);
|
||||
COMMIT;
|
||||
}]
|
||||
if {$rc!="1 {child process exited abnormally}"} {
|
||||
error "Wrong error message: $rc"
|
||||
}
|
||||
} -sqlbody {
|
||||
SELECT * FROM sqlite_master;
|
||||
SELECT * FROM aux.sqlite_master;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user