mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Reset the temp_store_directory each iteration of tests in all.test. (CVS 2181)
FossilOrigin-Name: 7373a5d4cf2db921b33132c736ad62ab702d7cde
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
#***********************************************************************
|
||||
# This file runs all tests.
|
||||
#
|
||||
# $Id: all.test,v 1.23 2005/01/03 01:33:00 drh Exp $
|
||||
# $Id: all.test,v 1.24 2005/01/07 10:42:48 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -78,6 +78,11 @@ for {set Counter 0} {$Counter<$COUNT && $nErr==0} {incr Counter} {
|
||||
if {[info exists Leak]} {
|
||||
lappend LeakList $Leak
|
||||
}
|
||||
|
||||
# Reset the sqlite3_temp_directory variable for the next run of tests:
|
||||
sqlite3 db :memory:
|
||||
db eval {PRAGMA temp_store_directory = ""}
|
||||
db close
|
||||
}
|
||||
|
||||
# Do one last test to look for a memory leak in the library. This will
|
||||
|
@ -12,7 +12,7 @@
|
||||
#
|
||||
# This file implements tests for the PRAGMA command.
|
||||
#
|
||||
# $Id: pragma.test,v 1.28 2004/12/20 19:01:33 tpoindex Exp $
|
||||
# $Id: pragma.test,v 1.29 2005/01/07 10:42:48 danielk1977 Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -587,10 +587,11 @@ do_test pragma-8.2.15 {
|
||||
}
|
||||
} {-450}
|
||||
|
||||
} ; # ifcapable schema_version
|
||||
|
||||
|
||||
# Test temp_store and temp_store_directory pragmas
|
||||
#
|
||||
|
||||
do_test pragma-9.1 {
|
||||
db close
|
||||
sqlite3 db test.db
|
||||
@ -661,6 +662,4 @@ do_test pragma-9.10 {
|
||||
|
||||
|
||||
|
||||
} ; # ifcapable schema_version
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user