/ Check-in [0f57011e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a "synchronous = off" variant to savepoint6.test. (CVS 6135)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0f57011e3b21fa5f6a819ce5a7fd8d44ea70679f
User & Date: danielk1977 2009-01-07 17:06:53
Context
2009-01-07
18:08
Make the same change as (6121) (accidentally reverted). Also enhance test_journal.c to catch this kind of bug. (CVS 6136) check-in: ccc9c211 user: danielk1977 tags: trunk
17:06
Add a "synchronous = off" variant to savepoint6.test. (CVS 6135) check-in: 0f57011e user: danielk1977 tags: trunk
16:15
Change SQLITE_MAX_FUNCTION_ARG from 100 to 127 to match invariant H16124. Ticket #3567. (CVS 6134) check-in: 1fe79ffd user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/savepoint6.test.

     5      5   #
     6      6   #    May you do good and not evil.
     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   #
    12         -# $Id: savepoint6.test,v 1.2 2009/01/06 13:40:08 danielk1977 Exp $
           12  +# $Id: savepoint6.test,v 1.3 2009/01/07 17:06:53 danielk1977 Exp $
    13     13   
    14     14   set testdir [file dirname $argv0]
    15     15   source $testdir/tester.tcl
    16     16   
    17     17   proc sql {zSql} {
    18     18     uplevel db eval [list $zSql]
    19     19     #puts stderr "$zSql ;"
................................................................................
   221    221   foreach zSetup [list {
   222    222     set testname normal
   223    223     sqlite3 db test.db
   224    224   } {
   225    225     set testname tempdb
   226    226     sqlite3 db ""
   227    227   } {
          228  +  if {[catch {set ::permutations_test_prefix} z] == 0 && $z eq "journaltest"} {
          229  +    continue
          230  +  }
          231  +  set testname nosync
          232  +  sqlite3 db test.db
          233  +  sql { PRAGMA synchronous = off }
          234  +} {
   228    235     set testname smallcache
   229    236     sqlite3 db test.db
   230    237     sql { PRAGMA cache_size = 10 }
   231    238   }] {
   232    239   
   233    240     unset -nocomplain ::lSavepoint
   234    241     unset -nocomplain ::aEntry
   235    242   
   236         -  db close
          243  +  catch { db close }
   237    244     file delete -force test.db
   238    245     eval $zSetup
   239    246     sql $DATABASE_SCHEMA
   240    247   
   241    248     do_test savepoint6-$testname.setup {
   242    249       savepoint one
   243    250       insert_rows [random_integers 100 1000]