1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix the rowallock.test script so that it works with builds that do not support mmap mode.

FossilOrigin-Name: 7efed5786bb6a7a452f5aece9d6c6a09e6930939
This commit is contained in:
dan
2015-07-25 14:26:17 +00:00
parent 06b5a224c0
commit d1f9ffeb5f
3 changed files with 14 additions and 9 deletions

View File

@ -17,6 +17,11 @@ source $testdir/tester.tcl
source $testdir/lock_common.tcl
set testprefix rowallock
set mmap_res 1000000
ifcapable !mmap {
set mmap_res 0
}
do_multiclient_test tn {
code2 { db2 close }
code3 { db3 close }
@ -36,7 +41,7 @@ do_multiclient_test tn {
do_execsql_test 1.$tn.2 {
PRAGMA mmap_size = 1000000;
} {1000000}
} $mmap_res
do_execsql_test 1.$tn.2.1 {
SELECT * FROM t1;
} {1 2 3 4}