mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix a recently introduced test script bug causing rollback.test to throw an exception when run using the "onefile" variation. (CVS 5778)
FossilOrigin-Name: 7d55ec374d62c6d3d588949b96e194920083fe4e
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
# caused by an ON CONFLICT ROLLBACK clause aborts any other pending
|
||||
# statements.
|
||||
#
|
||||
# $Id: rollback.test,v 1.7 2008/10/07 11:51:20 danielk1977 Exp $
|
||||
# $Id: rollback.test,v 1.8 2008/10/07 15:00:09 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -79,7 +79,9 @@ do_test rollback-1.9 {
|
||||
sqlite3_finalize $STMT
|
||||
} {SQLITE_OK}
|
||||
|
||||
if {$tcl_platform(platform) == "unix"} {
|
||||
set permutation ""
|
||||
catch {set permutation $::permutations_test_prefix}
|
||||
if {$tcl_platform(platform) == "unix" && $permutation ne "onefile"} {
|
||||
do_test rollback-2.1 {
|
||||
execsql {
|
||||
BEGIN;
|
||||
@ -123,11 +125,9 @@ if {$tcl_platform(platform) == "unix"} {
|
||||
SELECT distinct tbl_name FROM sqlite_master;
|
||||
} db2
|
||||
} {t1 t3}
|
||||
|
||||
do_test rollback-2.3 {
|
||||
file exists testA.db-journal
|
||||
} 0
|
||||
|
||||
do_test rollback-2.4 {
|
||||
execsql {
|
||||
SELECT distinct tbl_name FROM sqlite_master;
|
||||
|
Reference in New Issue
Block a user