/ Check-in [d82e8cd4]
Login

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

Overview
Comment:Modify test script backup2.test so that it works on OSX. (CVS 6357)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d82e8cd43f46dda15fd15b567901a7dbb2276287
User & Date: danielk1977 2009-03-18 13:55:30
Context
2009-03-18
18:43
Fix a crash that could occur when creating an index in shared-cache mode with lookaside enabled. (CVS 6358) check-in: 097737e3 user: danielk1977 tags: trunk
13:55
Modify test script backup2.test so that it works on OSX. (CVS 6357) check-in: d82e8cd4 user: danielk1977 tags: trunk
10:36
Add comments and testcase() macros to the fix for shared-cache schema default value problem of check-in (6353). (CVS 6356) check-in: 05d8607d user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to test/backup2.test.

     9      9   #
    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this file is testing the "backup" and "restore" methods
    13     13   # of the TCL interface - methods which are based on the
    14     14   # sqlite3_backup_XXX API.
    15     15   #
    16         -# $Id: backup2.test,v 1.2 2009/02/11 16:06:19 shane Exp $
           16  +# $Id: backup2.test,v 1.3 2009/03/18 13:55:30 danielk1977 Exp $
    17     17   
    18     18   set testdir [file dirname $argv0]
    19     19   source $testdir/tester.tcl
    20     20   
    21     21   # Fill a database with test data.
    22     22   #
    23     23   do_test backup2-1 {
................................................................................
   107    107     set rc [catch {db backup temp bu2.db} res]
   108    108     lappend rc $res
   109    109   } {1 {backup failed: attempt to write a readonly database}}
   110    110   
   111    111   # Try to backup to something that is not a database file.
   112    112   #
   113    113   do_test backup2-7 {
   114         -  catch {file attributes bu2.db -permissions rw-------}
   115    114     catch {file attributes bu2.db -readonly 0}
          115  +  catch {file attributes bu2.db -permissions rw-------}
   116    116     set out [open bu2.db w]
   117    117     puts $out "This is not a valid database file"
   118    118     close $out
   119    119     set rc [catch {db backup temp bu2.db} res]
   120    120     lappend rc $res
   121    121   } {1 {backup failed: file is encrypted or is not a database}}
   122    122