/ Check-in [14e6c302]
Login

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

Overview
Comment:Fix a windows-compatibility issue in the recently added schema6.test script.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 14e6c302ec3bc0e012b3c01aabee2d32e81389e1a4d834d1c57dd60bfbc97f29
User & Date: drh 2017-07-31 17:51:49
Context
2017-07-31
19:26
Sync up the MSVC autoconf makefile. check-in: b3b89f4f user: mistachkin tags: trunk
17:51
Fix a windows-compatibility issue in the recently added schema6.test script. check-in: 14e6c302 user: drh tags: trunk
17:06
Prevent OSSFuzz from using debugging pragmas that are disabled in default builds and which generate lots of excess output. check-in: cdc6494c user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/schema6.test.

    26     26   # identical.  Page 1 of the database files is allowed to be different, since
    27     27   # page 1 contains the sqlite_master table which is expected to vary.
    28     28   #
    29     29   proc check_same_database_content {basename args} {
    30     30     set i 0
    31     31     set hash {}
    32     32     foreach sql $args {
           33  +    catch {db close}
    33     34       forcedelete test.db
    34     35       sqlite3 db test.db
    35     36       db eval $sql
    36     37       set pgsz [db one {PRAGMA page_size}]
    37     38       db close
    38     39       set sz [file size test.db]
    39     40       set thishash [md5file test.db $pgsz [expr {$sz-$pgsz}]]