Remove a lot of the text describing extended format options from the
[sqlite.git] / test / pragmafault.test
blob34718aeca11bef5eeb080b6a3406b52256235604
1 # 2010 June 15
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 #***********************************************************************
13 set testdir [file dirname $argv0]
14 source $testdir/tester.tcl
15 source $testdir/lock_common.tcl
16 source $testdir/malloc_common.tcl
17 set testprefix pragmafault
19 db close
20 sqlite3 db test.db
21 sqlite3_db_config_lookaside db 0 0 0
22 do_execsql_test 1.0 {
23   CREATE TABLE t1(a, b, CHECK(a!=b));
24   INSERT INTO t1 VALUES(1, 2);
25   INSERT INTO t1 VALUES(3, 4);
27 faultsim_save_and_close
29 do_faultsim_test 1 -prep {
30   faultsim_restore_and_reopen
31 } -body {
32   catchsql { PRAGMA integrity_check }
33   set {} 0
34 } -test {
35   faultsim_test_result {0 0} 
39 finish_test