/ Check-in [301b57b7]
Login

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

Overview
Comment:Update permutations.test so that it does not show an error when running the singlethread and multithread test cases on THREADSAFE=0 builds. (CVS 6119)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 301b57b7bac949dd77037ad3175ba87c41c8c843
User & Date: drh 2009-01-06 14:50:11
Context
2009-01-06
15:20
Fix a recently introduced problem in "permutations.test autovacuum_crash". (CVS 6120) check-in: 2cdbb468 user: danielk1977 tags: trunk
14:50
Update permutations.test so that it does not show an error when running the singlethread and multithread test cases on THREADSAFE=0 builds. (CVS 6119) check-in: 301b57b7 user: drh tags: trunk
14:34
Fix a memory leak in test_journal.c (test code). Also remove function pager_truncate_cache(), a wrapper around sqlite3PCacheTruncate(), from pager.c. (CVS 6118) check-in: a64f3db0 user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/permutations.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: permutations.test,v 1.43 2009/01/06 13:40:08 danielk1977 Exp $
           12  +# $Id: permutations.test,v 1.44 2009/01/06 14:50:11 drh Exp $
    13     13   
    14     14   set testdir [file dirname $argv0]
    15     15   source $testdir/tester.tcl
    16     16   
    17     17   # Argument processing.
    18     18   #
    19     19   #puts "PERM-DEBUG: argv=$argv"
................................................................................
   230    230   }
   231    231   
   232    232   # Run some tests in SQLITE_CONFIG_SINGLETHREAD mode.
   233    233   #
   234    234   run_tests "singlethread" -description {
   235    235     Tests run in SQLITE_CONFIG_SINGLETHREAD mode
   236    236   } -initialize {
   237         -  do_test mutex2-singlethread.0 {
   238         -    catch {db close}
   239         -    sqlite3_shutdown
   240         -    sqlite3_config singlethread
   241         -  } SQLITE_OK
          237  +  catch {db close}
          238  +  sqlite3_shutdown
          239  +  catch {sqlite3_config singlethread}
   242    240   } -include {
   243    241     delete.test   delete2.test  insert.test  rollback.test  select1.test
   244    242     select2.test  trans.test    update.test  vacuum.test    types.test
   245    243     types2.test   types3.test
   246    244   } -shutdown {
   247         -  do_test mutex2-X {
   248         -    catch {db close}
   249         -    sqlite3_shutdown
   250         -    sqlite3_config serialized
   251         -  } SQLITE_OK
          245  +  catch {db close}
          246  +  sqlite3_shutdown
          247  +  catch {sqlite3_config serialized}
   252    248   }
   253    249   
   254    250   run_tests "nomutex" -description {
   255    251     Tests run with the SQLITE_OPEN_MULTITHREADED flag passed to sqlite3_open().
   256    252   } -initialize {
   257    253     rename sqlite3 sqlite3_nomutex
   258    254     proc sqlite3 {args} {
................................................................................
   271    267   }
   272    268   
   273    269   # Run some tests in SQLITE_CONFIG_MULTITHREAD mode.
   274    270   #
   275    271   run_tests "multithread" -description {
   276    272     Tests run in SQLITE_CONFIG_MULTITHREAD mode
   277    273   } -initialize {
   278         -  do_test mutex2-multithread.0 {
   279         -    catch {db close}
   280         -    sqlite3_shutdown
   281         -    sqlite3_config multithread
   282         -  } SQLITE_OK
          274  +  catch {db close}
          275  +  sqlite3_shutdown
          276  +  catch {sqlite3_config multithread}
   283    277   } -include {
   284    278     delete.test   delete2.test  insert.test  rollback.test  select1.test
   285    279     select2.test  trans.test    update.test  vacuum.test    types.test
   286    280     types2.test   types3.test
   287    281   } -shutdown {
   288         -  do_test mutex2-X {
   289         -    catch {db close}
   290         -    sqlite3_shutdown
   291         -    sqlite3_config serialized
   292         -  } SQLITE_OK
          282  +  catch {db close}
          283  +  sqlite3_shutdown
          284  +  catch {sqlite3_config serialized}
   293    285   }
   294    286   
   295    287   # Run some tests in SQLITE_OPEN_FULLMUTEX mode.
   296    288   #
   297    289   run_tests "fullmutex" -description {
   298    290     Tests run in SQLITE_OPEN_FULLMUTEX mode
   299    291   } -initialize {