mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Test suite fixes for builds that define OMIT symbols. (CVS 2962)
FossilOrigin-Name: 3a54a33dcb7e765ee3773397407e8929a8cfe1a9
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
# interface is pretty well tested. This file contains some addition
|
||||
# tests for fringe issues that the main test suite does not cover.
|
||||
#
|
||||
# $Id: tclsqlite.test,v 1.49 2006/01/05 15:50:07 drh Exp $
|
||||
# $Id: tclsqlite.test,v 1.50 2006/01/17 09:35:02 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -335,18 +335,20 @@ do_test tcl-9.3 {
|
||||
|
||||
# Recursive calls to the same user-defined function
|
||||
#
|
||||
do_test tcl-9.10 {
|
||||
proc userfunc_r1 {n} {
|
||||
if {$n<=0} {return 0}
|
||||
set nm1 [expr {$n-1}]
|
||||
return [expr {[db eval {SELECT r1($nm1)}]+$n}]
|
||||
}
|
||||
db function r1 userfunc_r1
|
||||
execsql {SELECT r1(10)}
|
||||
} {55}
|
||||
do_test tcl-9.11 {
|
||||
execsql {SELECT r1(100)}
|
||||
} {5050}
|
||||
ifcapable tclvar {
|
||||
do_test tcl-9.10 {
|
||||
proc userfunc_r1 {n} {
|
||||
if {$n<=0} {return 0}
|
||||
set nm1 [expr {$n-1}]
|
||||
return [expr {[db eval {SELECT r1($nm1)}]+$n}]
|
||||
}
|
||||
db function r1 userfunc_r1
|
||||
execsql {SELECT r1(10)}
|
||||
} {55}
|
||||
do_test tcl-9.11 {
|
||||
execsql {SELECT r1(100)}
|
||||
} {5050}
|
||||
}
|
||||
|
||||
# Tests for the new transaction method
|
||||
#
|
||||
|
Reference in New Issue
Block a user