Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Additional test cases for loadable extensions. (CVS 5247) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
9d73a68c305db673d393db118b6a4124 |
User & Date: | drh 2008-06-19 15:44:00.000 |
Context
2008-06-19
| ||
16:07 | Fix some minor compile problems. (CVS 5248) (check-in: 7d38da3eea user: drh tags: trunk) | |
15:44 | Additional test cases for loadable extensions. (CVS 5247) (check-in: 9d73a68c30 user: drh tags: trunk) | |
15:06 | Add recent API additions to the loadable extension interface. (CVS 5246) (check-in: 12ba27d94e user: drh tags: trunk) | |
Changes
Changes to src/test_loadext.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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 | - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | /* ** 2006 June 14 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Test extension for testing the sqlite3_load_extension() function. ** |
︙ |
Changes to test/loadext.test.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | - + | # 2006 July 14 # # The author disclaims copyright to this source code. In place of # a legal notice, here is a blessing: # # May you do good and not evil. # May you find forgiveness for yourself and forgive others. # May you share freely, never taking more than you give. # #*********************************************************************** # This file implements regression tests for SQLite library. The # focus of this script is extension loading. # |
︙ | |||
183 184 185 186 187 188 189 190 191 192 193 194 195 196 | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | + + + + + + + + + + + + + + + + + + + + + + | } } {0 {{}}} do_test loadext-3.4 { catchsql { SELECT half(5); } } {0 2.5} do_test loadext-3.5 { db eval { SELECT sqlite3_status('MEMORY_USED') AS mused } break puts -nonewline " (memory_used=$mused) " expr {$mused>0} } {1} do_test loadext-3.6 { catchsql { SELECT sqlite3_status('MEMORY_USED_X') AS mused } } {1 {unknown status property: MEMORY_USED_X}} do_test loadext-3.7 { catchsql { SELECT sqlite3_status(4.53) AS mused } } {1 {unknown status type}} do_test loadext-3.8 { catchsql { SELECT sqlite3_status(23) AS mused } } {1 {sqlite3_status(23,...) returns 21}} # Ticket #1863 # Make sure the extension loading mechanism will not work unless it # is explicitly enabled. # db close sqlite3 db test.db |
︙ |