/ Check-in [80de240a]
Login

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

Overview
Comment:Make sure a test of multiplex shim doesn't fail if a file already exists.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 80de240a329d8df4aa1e437711bf6ed889d92c5f
User & Date: shaneh 2010-12-01 22:08:46
Context
2010-12-01
23:42
Changed multiplex shim's xFilesize to return an error on mismatched chunk size. Added test of same. check-in: 6818c6e4 user: shaneh tags: trunk
22:08
Make sure a test of multiplex shim doesn't fail if a file already exists. check-in: 80de240a user: shaneh tags: trunk
20:49
Added TCL test case for converting to WAL mode with multiple connections. Added exception to the test case for Windows for not being able to delete the open journal file. check-in: 7061601f user: shaneh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/multiplex.test.

    50     50       forcedelete [multiplex_name $name-journal $i]
    51     51       forcedelete [multiplex_name $name-wal $i]
    52     52     }
    53     53   }
    54     54   
    55     55   db close
    56     56   
           57  +multiplex_delete test.db
           58  +multiplex_delete test2.db
           59  +
    57     60   #-------------------------------------------------------------------------
    58     61   #   multiplex-1.1.*: Test initialize and shutdown.
    59     62   
    60     63   do_test multiplex-1.1 { sqlite3_multiplex_initialize nosuchvfs 1 } {SQLITE_ERROR}
    61     64   do_test multiplex-1.2 { sqlite3_multiplex_initialize "" 1 }        {SQLITE_OK}
    62     65   do_test multiplex-1.3 { sqlite3_multiplex_initialize "" 1 }        {SQLITE_MISUSE}
    63     66   do_test multiplex-1.4 { sqlite3_multiplex_shutdown }               {SQLITE_OK}
................................................................................
   119    122   
   120    123   do_test multiplex-2.2.1 {
   121    124     execsql { INSERT INTO t1 VALUES(3, randomblob(1100)) }
   122    125   } {}
   123    126   do_test multiplex-2.2.3 { file size [multiplex_name test.db 0] } {6144}
   124    127   
   125    128   do_test multiplex-2.3.1 {
   126         -  sqlite3 db2 bak.db
          129  +  sqlite3 db2 test2.db
   127    130     db2 close
   128    131   } {}
   129    132   
   130    133   do_test multiplex-2.4.1 {
   131    134     sqlite3_multiplex_shutdown
   132    135   } {SQLITE_MISUSE}
   133    136   do_test multiplex-2.4.2 {