System.Data.SQLite
Check-in [1ddef23eb9]
Not logged in

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

Overview
Comment:Add tests for ticket [71bedaca19].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1ddef23eb96500565a57d29a9aaabe1c08358386
User & Date: mistachkin 2015-07-13 22:41:47
Context
2015-07-14
19:29
Honor the pre-existing flags for connections during the Open method. Fix for [964063da16]. check-in: f7cac79346 user: mistachkin tags: trunk
2015-07-13
22:41
Add tests for ticket [71bedaca19]. check-in: 1ddef23eb9 user: mistachkin tags: trunk
19:51
Add extended return codes to the SQLiteErrorCode enumeration. Pursuant to [71bedaca19]. check-in: 42798551ca user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Setup/data/verify.lst.

   740    740     Tests/tkt-544dba0a2f.eagle
   741    741     Tests/tkt-56b42d99c1.eagle
   742    742     Tests/tkt-58ed318f2f.eagle
   743    743     Tests/tkt-59edc1018b.eagle
   744    744     Tests/tkt-6434e23a0f.eagle
   745    745     Tests/tkt-647d282d11.eagle
   746    746     Tests/tkt-6c6ecccc5f.eagle
          747  +  Tests/tkt-71bedaca19.eagle
   747    748     Tests/tkt-72905c9a77.eagle
   748    749     Tests/tkt-74542e702e.eagle
   749    750     Tests/tkt-7c151a2f0e.eagle
   750    751     Tests/tkt-7e3fa93744.eagle
   751    752     Tests/tkt-84718e79fa.eagle
   752    753     Tests/tkt-8554170e09.eagle
   753    754     Tests/tkt-85b824b736.eagle

Added Tests/tkt-71bedaca19.eagle.

            1  +###############################################################################
            2  +#
            3  +# tkt-71bedaca19.eagle --
            4  +#
            5  +# Written by Joe Mistachkin.
            6  +# Released to the public domain, use at your own risk!
            7  +#
            8  +###############################################################################
            9  +
           10  +package require Eagle
           11  +package require Eagle.Library
           12  +package require Eagle.Test
           13  +
           14  +runTestPrologue
           15  +
           16  +###############################################################################
           17  +
           18  +package require System.Data.SQLite.Test
           19  +runSQLiteTestPrologue
           20  +
           21  +###############################################################################
           22  +
           23  +runTest {test tkt-71bedaca19-1.1 {SQLiteErrorCode names and values} -setup {
           24  +  object import System.Data.SQLite
           25  +} -body {
           26  +  set result [list]
           27  +
           28  +  foreach name [lsort [object invoke Enum GetNames SQLiteErrorCode]] {
           29  +    if {$name ni [list NonExtendedMask Unknown]} then {
           30  +      set convertible [object invoke -create -alias \
           31  +          -flags {:Static Public GetField} -returntype IConvertible \
           32  +          SQLiteErrorCode $name]
           33  +
           34  +      lappend result [list $name [$convertible ToUInt64 null]]
           35  +    }
           36  +  }
           37  +
           38  +  join $result \n
           39  +} -cleanup {
           40  +  object unimport -importpattern System.Data.SQLite
           41  +
           42  +  unset -nocomplain result convertible name
           43  +} -constraints {eagle command.object System.Data.SQLite} -result {Abort 4
           44  +Abort_Rollback 516
           45  +Auth 23
           46  +Auth_User 279
           47  +Busy 5
           48  +Busy_Recovery 261
           49  +Busy_Snapshot 517
           50  +CantOpen 14
           51  +CantOpen_ConvPath 1038
           52  +CantOpen_FullPath 782
           53  +CantOpen_IsDir 526
           54  +CantOpen_NoTempDir 270
           55  +Constraint 19
           56  +Constraint_Check 275
           57  +Constraint_CommitHook 531
           58  +Constraint_ForeignKey 787
           59  +Constraint_Function 1043
           60  +Constraint_NotNull 1299
           61  +Constraint_PrimaryKey 1555
           62  +Constraint_RowId 2579
           63  +Constraint_Trigger 1811
           64  +Constraint_Unique 2067
           65  +Constraint_Vtab 2323
           66  +Corrupt 11
           67  +Corrupt_Vtab 267
           68  +Done 101
           69  +Empty 16
           70  +Error 1
           71  +Format 24
           72  +Full 13
           73  +Internal 2
           74  +Interrupt 9
           75  +IoErr 10
           76  +IoErr_Access 3338
           77  +IoErr_Blocked 2826
           78  +IoErr_CheckReservedLock 3594
           79  +IoErr_Close 4106
           80  +IoErr_ConvPath 6666
           81  +IoErr_Delete 2570
           82  +IoErr_Delete_NoEnt 5898
           83  +IoErr_Dir_Close 4362
           84  +IoErr_Dir_Fsync 1290
           85  +IoErr_Fstat 1802
           86  +IoErr_Fsync 1034
           87  +IoErr_GetTempPath 6410
           88  +IoErr_Lock 3850
           89  +IoErr_Mmap 6154
           90  +IoErr_NoMem 3082
           91  +IoErr_RdLock 2314
           92  +IoErr_Read 266
           93  +IoErr_Seek 5642
           94  +IoErr_ShmLock 5130
           95  +IoErr_ShmMap 5386
           96  +IoErr_ShmOpen 4618
           97  +IoErr_ShmSize 4874
           98  +IoErr_Short_Read 522
           99  +IoErr_Truncate 1546
          100  +IoErr_Unlock 2058
          101  +IoErr_Write 778
          102  +Locked 6
          103  +Locked_SharedCache 262
          104  +Mismatch 20
          105  +Misuse 21
          106  +NoLfs 22
          107  +NoMem 7
          108  +NotADb 26
          109  +NotFound 12
          110  +Notice 27
          111  +Notice_Recover_Rollback 539
          112  +Notice_Recover_Wal 283
          113  +Ok 0
          114  +Perm 3
          115  +Protocol 15
          116  +Range 25
          117  +ReadOnly 8
          118  +ReadOnly_CantLock 520
          119  +ReadOnly_DbMoved 1032
          120  +ReadOnly_Recovery 264
          121  +ReadOnly_Rollback 776
          122  +Row 100
          123  +Schema 17
          124  +TooBig 18
          125  +Warning 28
          126  +Warning_AutoIndex 284}}
          127  +
          128  +###############################################################################
          129  +
          130  +runSQLiteTestEpilogue
          131  +runTestEpilogue