Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Reset the temp_store_directory each iteration of tests in all.test. (CVS 2181) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7373a5d4cf2db921b33132c736ad62ab |
User & Date: | danielk1977 2005-01-07 10:42:48.000 |
Context
2005-01-08
| ||
02:35 | Minor test script changes to allow all.test to run when SQLITE_DEFAULT_AUTOVACUUM=1 is defined. (CVS 2182) (check-in: 5023b1dba2 user: danielk1977 tags: trunk) | |
2005-01-07
| ||
10:42 | Reset the temp_store_directory each iteration of tests in all.test. (CVS 2181) (check-in: 7373a5d4cf user: danielk1977 tags: trunk) | |
08:56 | Fix a read of invalid memory that could occur in btree.c. (CVS 2180) (check-in: 929745c183 user: danielk1977 tags: trunk) | |
Changes
Changes to test/all.test.
1 2 3 4 5 6 7 8 9 10 11 12 | # 2001 September 15 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # This file runs all tests. # | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # 2001 September 15 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # This file runs all tests. # # $Id: all.test,v 1.24 2005/01/07 10:42:48 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl rename finish_test really_finish_test proc finish_test {} {memleak_check} if {[file exists ./sqlite_test_count]} { |
︙ | ︙ | |||
74 75 76 77 78 79 80 81 82 83 84 85 86 87 | incr nErr lappend ::failList $tail } } if {[info exists Leak]} { lappend LeakList $Leak } } # Do one last test to look for a memory leak in the library. This will # only work if SQLite is compiled with the -DSQLITE_DEBUG=1 flag. # if {$LeakList!=""} { puts -nonewline memory-leak-test... | > > > > > | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | incr nErr lappend ::failList $tail } } 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 # only work if SQLite is compiled with the -DSQLITE_DEBUG=1 flag. # if {$LeakList!=""} { puts -nonewline memory-leak-test... |
︙ | ︙ |
Changes to test/pragma.test.
︙ | ︙ | |||
8 9 10 11 12 13 14 | # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. # # This file implements tests for the PRAGMA command. # | | | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. # # This file implements tests for the PRAGMA command. # # $Id: pragma.test,v 1.29 2005/01/07 10:42:48 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl # Test organization: # # pragma-1.*: Test cache_size, default_cache_size and synchronous on main db. |
︙ | ︙ | |||
583 584 585 586 587 588 589 590 591 592 | } {} do_test pragma-8.2.15 { execsql { PRAGMA user_version; } } {-450} # Test temp_store and temp_store_directory pragmas # | > > < | 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 | } {} do_test pragma-8.2.15 { execsql { PRAGMA user_version; } } {-450} } ; # ifcapable schema_version # Test temp_store and temp_store_directory pragmas # do_test pragma-9.1 { db close sqlite3 db test.db execsql { PRAGMA temp_store; } } {0} |
︙ | ︙ | |||
657 658 659 660 661 662 663 | " } result set result } {no such table: temp_store_directory_test} | < < | 658 659 660 661 662 663 664 665 | " } result set result } {no such table: temp_store_directory_test} finish_test |