/ Check-in [40a40e81]
Login

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

Overview
Comment:Update the filefmt.test test script to conform to the previous check-in. (CVS 6781)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:40a40e81b3ad80114422d6a48146e5fb27e2551d
User & Date: drh 2009-06-18 11:34:43
Context
2009-06-18
17:22
Move codec management from database connections into the pager so that it will work together with shared cache. (CVS 6782) check-in: ed08b53c user: drh tags: trunk
11:34
Update the filefmt.test test script to conform to the previous check-in. (CVS 6781) check-in: 40a40e81 user: drh tags: trunk
11:29
Reduce the minimum usable page space to 480 byte from 500 bytes. (CVS 6780) check-in: db4fb835 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/filefmt.test.

     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.
    12     12   #
    13     13   # This file implements tests to verify database file format.
    14     14   #
    15         -# $Id: filefmt.test,v 1.2 2007/04/06 21:42:22 drh Exp $
           15  +# $Id: filefmt.test,v 1.3 2009/06/18 11:34:43 drh Exp $
    16     16   
    17     17   set testdir [file dirname $argv0]
    18     18   source $testdir/tester.tcl
    19     19   db close
    20     20   file delete -force test.db test.db-journal
    21     21   
    22     22   # Database begins with valid 16-byte header string.
................................................................................
    90     90     sqlite3 db test.db
    91     91     catchsql {
    92     92        SELECT count(*) FROM sqlite_master
    93     93     }
    94     94   } {1 {file is encrypted or is not a database}}
    95     95   
    96     96   # Usable space per page (page-size minus unused space per page)
    97         -# must be at least 500 bytes
           97  +# must be at least 480 bytes
    98     98   #
    99     99   ifcapable pager_pragmas {
   100    100     do_test filefmt-1.8 {
   101    101       db close
   102    102       file delete -force test.db
   103    103       sqlite3 db test.db
   104    104       db eval {PRAGMA page_size=512; CREATE TABLE t1(x)}
   105    105       db close
   106         -    hexio_write test.db 20 10
          106  +    hexio_write test.db 20 21
   107    107       sqlite3 db test.db
   108    108       catchsql {
   109    109          SELECT count(*) FROM sqlite_master
   110    110       }
   111    111     } {1 {file is encrypted or is not a database}}
   112    112   }
   113    113   
   114    114   
   115    115   finish_test