/ Check-in [2faf69ca]
Login

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

Overview
Comment:Updated test case for Windows to get around problems in ticket #3129. (CVS 5146)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2faf69ca1da43f8083b96675a4886648f10177d8
User & Date: shane 2008-05-20 13:17:28
Context
2008-05-20
14:01
Added more DST boundary checks for 2006 and 2007. Added check for suspect Windows DST implementations and warning about them. Ticket #2322. (CVS 5147) check-in: 14226ff0 user: shane tags: trunk
13:17
Updated test case for Windows to get around problems in ticket #3129. (CVS 5146) check-in: 2faf69ca user: shane tags: trunk
07:05
Do not attempt to write a master journal name to the (non-existent) journal file in "no-journal" mode. Fix for #3127. (CVS 5145) check-in: ffd4e50a user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/tkt2854.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: tkt2854.test,v 1.1 2007/12/21 04:47:27 danielk1977 Exp $
           12  +# $Id: tkt2854.test,v 1.2 2008/05/20 13:17:28 shane Exp $
    13     13   
    14     14   set testdir [file dirname $argv0]
    15     15   source $testdir/tester.tcl
    16     16   db close
    17     17   
    18     18   ifcapable !shared_cache {
    19     19     finish_test
................................................................................
    24     24   
    25     25   # Open 3 database connections. Connection "db" and "db2" share a cache.
    26     26   # Connection "db3" has its own cache.
    27     27   #
    28     28   do_test tkt2854-1.1 {
    29     29     sqlite3 db test.db
    30     30     sqlite3 db2 test.db
    31         -  sqlite3 db3 ./test.db
           31  +
           32  +  # This is taken from shared.test.  The Windows VFS expands 
           33  +  # ./test.db (and test.db) to be the same thing so the path
           34  +  # matches and they share a cache.  By changing the case 
           35  +  # for Windows platform, we get around this and get a separate
           36  +  # connection.
           37  +  if {$::tcl_platform(platform)=="unix"} {
           38  +    sqlite3 db3 ./test.db
           39  +  } else {
           40  +    sqlite3 db3 TEST.DB
           41  +  }
    32     42   
    33     43     db eval {
    34     44       CREATE TABLE abc(a, b, c);
    35     45     }
    36     46   } {}
    37     47   
    38     48   # Check that an exclusive lock cannot be obtained if some other