1*76ed3bc0Sdan# 2010 May 03 2*76ed3bc0Sdan# 3*76ed3bc0Sdan# The author disclaims copyright to this source code. In place of 4*76ed3bc0Sdan# a legal notice, here is a blessing: 5*76ed3bc0Sdan# 6*76ed3bc0Sdan# May you do good and not evil. 7*76ed3bc0Sdan# May you find forgiveness for yourself and forgive others. 8*76ed3bc0Sdan# May you share freely, never taking more than you give. 9*76ed3bc0Sdan# 10*76ed3bc0Sdan#*********************************************************************** 11*76ed3bc0Sdan# This file implements regression tests for SQLite library. The 12*76ed3bc0Sdan# focus of this file is testing the operation of the library in 13*76ed3bc0Sdan# "PRAGMA journal_mode=WAL" mode. 14*76ed3bc0Sdan# 15*76ed3bc0Sdan 16*76ed3bc0Sdanset testdir [file dirname $argv0] 17*76ed3bc0Sdansource $testdir/tester.tcl 18*76ed3bc0Sdansource $testdir/malloc_common.tcl 19*76ed3bc0Sdan 20*76ed3bc0Sdanifcapable !wal {finish_test ; return } 21*76ed3bc0Sdan 22*76ed3bc0Sdando_malloc_test walfault-oom-1 -sqlbody { 23*76ed3bc0Sdan PRAGMA journal_mode = WAL; 24*76ed3bc0Sdan CREATE TABLE t1(a, b); 25*76ed3bc0Sdan INSERT INTO t1 VALUES(1, 2); 26*76ed3bc0Sdan PRAGMA checkpoint; 27*76ed3bc0Sdan} 28*76ed3bc0Sdan 29*76ed3bc0Sdan 30*76ed3bc0Sdanfinish_test 31