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 Unified Diffs Ignore Whitespace Patch

Changes to Setup/data/verify.lst.

740
741
742
743
744
745
746

747
748
749
750
751
752
753
  Tests/tkt-544dba0a2f.eagle
  Tests/tkt-56b42d99c1.eagle
  Tests/tkt-58ed318f2f.eagle
  Tests/tkt-59edc1018b.eagle
  Tests/tkt-6434e23a0f.eagle
  Tests/tkt-647d282d11.eagle
  Tests/tkt-6c6ecccc5f.eagle

  Tests/tkt-72905c9a77.eagle
  Tests/tkt-74542e702e.eagle
  Tests/tkt-7c151a2f0e.eagle
  Tests/tkt-7e3fa93744.eagle
  Tests/tkt-84718e79fa.eagle
  Tests/tkt-8554170e09.eagle
  Tests/tkt-85b824b736.eagle







>







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

Added Tests/tkt-71bedaca19.eagle.







































































































































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
###############################################################################
#
# tkt-71bedaca19.eagle --
#
# Written by Joe Mistachkin.
# Released to the public domain, use at your own risk!
#
###############################################################################

package require Eagle
package require Eagle.Library
package require Eagle.Test

runTestPrologue

###############################################################################

package require System.Data.SQLite.Test
runSQLiteTestPrologue

###############################################################################

runTest {test tkt-71bedaca19-1.1 {SQLiteErrorCode names and values} -setup {
  object import System.Data.SQLite
} -body {
  set result [list]

  foreach name [lsort [object invoke Enum GetNames SQLiteErrorCode]] {
    if {$name ni [list NonExtendedMask Unknown]} then {
      set convertible [object invoke -create -alias \
          -flags {:Static Public GetField} -returntype IConvertible \
          SQLiteErrorCode $name]

      lappend result [list $name [$convertible ToUInt64 null]]
    }
  }

  join $result \n
} -cleanup {
  object unimport -importpattern System.Data.SQLite

  unset -nocomplain result convertible name
} -constraints {eagle command.object System.Data.SQLite} -result {Abort 4
Abort_Rollback 516
Auth 23
Auth_User 279
Busy 5
Busy_Recovery 261
Busy_Snapshot 517
CantOpen 14
CantOpen_ConvPath 1038
CantOpen_FullPath 782
CantOpen_IsDir 526
CantOpen_NoTempDir 270
Constraint 19
Constraint_Check 275
Constraint_CommitHook 531
Constraint_ForeignKey 787
Constraint_Function 1043
Constraint_NotNull 1299
Constraint_PrimaryKey 1555
Constraint_RowId 2579
Constraint_Trigger 1811
Constraint_Unique 2067
Constraint_Vtab 2323
Corrupt 11
Corrupt_Vtab 267
Done 101
Empty 16
Error 1
Format 24
Full 13
Internal 2
Interrupt 9
IoErr 10
IoErr_Access 3338
IoErr_Blocked 2826
IoErr_CheckReservedLock 3594
IoErr_Close 4106
IoErr_ConvPath 6666
IoErr_Delete 2570
IoErr_Delete_NoEnt 5898
IoErr_Dir_Close 4362
IoErr_Dir_Fsync 1290
IoErr_Fstat 1802
IoErr_Fsync 1034
IoErr_GetTempPath 6410
IoErr_Lock 3850
IoErr_Mmap 6154
IoErr_NoMem 3082
IoErr_RdLock 2314
IoErr_Read 266
IoErr_Seek 5642
IoErr_ShmLock 5130
IoErr_ShmMap 5386
IoErr_ShmOpen 4618
IoErr_ShmSize 4874
IoErr_Short_Read 522
IoErr_Truncate 1546
IoErr_Unlock 2058
IoErr_Write 778
Locked 6
Locked_SharedCache 262
Mismatch 20
Misuse 21
NoLfs 22
NoMem 7
NotADb 26
NotFound 12
Notice 27
Notice_Recover_Rollback 539
Notice_Recover_Wal 283
Ok 0
Perm 3
Protocol 15
Range 25
ReadOnly 8
ReadOnly_CantLock 520
ReadOnly_DbMoved 1032
ReadOnly_Recovery 264
ReadOnly_Rollback 776
Row 100
Schema 17
TooBig 18
Warning 28
Warning_AutoIndex 284}}

###############################################################################

runSQLiteTestEpilogue
runTestEpilogue