Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 157214
Collapse All | Expand All

(-)test/capi3.test~ (-24 lines)
Lines 140-157 Link Here
140
do_test capi3-3.2 {
140
do_test capi3-3.2 {
141
  sqlite3_close $db2
141
  sqlite3_close $db2
142
} {SQLITE_OK}
142
} {SQLITE_OK}
143
do_test capi3-3.3 {
144
  catch {
145
    set db2 [sqlite3_open /bogus/path/test.db {}]
146
  }
147
  sqlite3_errcode $db2
148
} {SQLITE_CANTOPEN}
149
do_test capi3-3.4 {
150
  sqlite3_errmsg $db2
151
} {unable to open database file}
152
do_test capi3-3.5 {
153
  sqlite3_close $db2
154
} {SQLITE_OK}
155
do_test capi3-3.6.1-misuse {
143
do_test capi3-3.6.1-misuse {
156
  sqlite3_close $db2
144
  sqlite3_close $db2
157
} {SQLITE_MISUSE}
145
} {SQLITE_MISUSE}
Lines 176-193 Link Here
176
do_test capi3-4.2 {
164
do_test capi3-4.2 {
177
  sqlite3_close $db2
165
  sqlite3_close $db2
178
} {SQLITE_OK}
166
} {SQLITE_OK}
179
do_test capi3-4.3 {
180
  catch {
181
    set db2 [sqlite3_open16 [utf16 /bogus/path/test.db] {}]
182
  }
183
  sqlite3_errcode $db2
184
} {SQLITE_CANTOPEN}
185
do_test capi3-4.4 {
186
  utf8 [sqlite3_errmsg16 $db2]
187
} {unable to open database file}
188
do_test capi3-4.5 {
189
  sqlite3_close $db2
190
} {SQLITE_OK}
191
} ;# utf16
167
} ;# utf16
192
168
193
# This proc is used to test the following API calls:
169
# This proc is used to test the following API calls:

Return to bug 157214