3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
12 # This file is to test that ticket #2686 has been fixed.
14 # $Id: tkt2686.test,v 1.3 2008/02/02 02:48:52 drh Exp $
17 set testdir [file dirname $argv0]
18 source $testdir/tester.tcl
26 PRAGMA page_size=1024;
27 PRAGMA max_page_count=50;
29 CREATE TABLE filler (fill);
31 for {set i 1} {$i<2000} {incr i} {
32 do_test tkt2686-$i.1 {
36 db eval {INSERT INTO filler (fill) VALUES (randstr(1000, 10000)) }
40 } {1 {database or disk is full}}
41 do_test tkt2686-$i.2 {
44 WHERE rowid <= (SELECT MAX(rowid) FROM filler LIMIT 20)
47 integrity_check tkt2686-$i.3
48 catch {db eval COMMIT}
52 forcedelete test.db test.db-journal
56 PRAGMA page_size=1024;
57 PRAGMA max_page_count=50;
59 CREATE TABLE filler (fill);
61 for {set i 10000} {$i<12000} {incr i} {
62 do_test tkt2686-$i.1 {
66 db eval {INSERT INTO filler (fill) VALUES (randstr(1000, 10000)) }
70 } {1 {database or disk is full}}
71 do_test tkt2686-$i.2 {
74 WHERE rowid <= (SELECT MAX(rowid) FROM filler LIMIT 20)
77 integrity_check tkt2686-$i.3
78 catch {db eval COMMIT}