1*44918c74Sdan# 2021 April 17 2*44918c74Sdan# 3*44918c74Sdan# The author disclaims copyright to this source code. In place of 4*44918c74Sdan# a legal notice, here is a blessing: 5*44918c74Sdan# 6*44918c74Sdan# May you do good and not evil. 7*44918c74Sdan# May you find forgiveness for yourself and forgive others. 8*44918c74Sdan# May you share freely, never taking more than you give. 9*44918c74Sdan# 10*44918c74Sdan#*********************************************************************** 11*44918c74Sdan# This file implements regression tests for SQLite library. 12*44918c74Sdan# 13*44918c74Sdan 14*44918c74Sdanset testdir [file dirname $argv0] 15*44918c74Sdansource $testdir/tester.tcl 16*44918c74Sdanset testprefix exprfault 17*44918c74Sdan 18*44918c74Sdando_execsql_test 1.0 { 19*44918c74Sdan CREATE TABLE t1(a); 20*44918c74Sdan CREATE TABLE t2(d); 21*44918c74Sdan} 22*44918c74Sdanfaultsim_save_and_close 23*44918c74Sdan 24*44918c74Sdando_faultsim_test 1.1 -faults oom* -prep { 25*44918c74Sdan faultsim_restore_and_reopen 26*44918c74Sdan} -body { 27*44918c74Sdan execsql { 28*44918c74Sdan SELECT a = ( SELECT d FROM (SELECT d FROM t2) ) FROM t1 29*44918c74Sdan } 30*44918c74Sdan} -test { 31*44918c74Sdan faultsim_test_result {0 {}} 32*44918c74Sdan} 33*44918c74Sdan 34*44918c74Sdan 35*44918c74Sdanfinish_test 36