/ Check-in [3d5eae1c]
Login

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

Overview
Comment:Update a test case in malloc5.test to take into account that malloc() sometimes returns slightly more space than requested.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:3d5eae1c26353cdee89f31f1293b05c0edb494c775ba0912d9b4fda9ab0ef304
User & Date: dan 2018-06-02 17:00:57
Context
2018-06-02
19:01
Fix the usage of posix_fallocate() so that it correctly responds to EINVAL returns. check-in: ce2c3e7a user: drh tags: trunk
17:00
Update a test case in malloc5.test to take into account that malloc() sometimes returns slightly more space than requested. check-in: 3d5eae1c user: dan tags: trunk
12:05
Fix the CSV extension so that it works with single-column CSV files. check-in: e336cf00 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/malloc5.test.

   170    170     db eval {SELECT * FROM abc} {
   171    171       incr nRelease [sqlite3_release_memory]
   172    172       lappend data $a $b $c
   173    173     }
   174    174     execsql {
   175    175       COMMIT;
   176    176     }
   177         -  list $nRelease $data
   178         -} [list $pgalloc [list 1 2 3 4 5 6]]
          177  +  value_in_range $::pgalloc $::mrange $nRelease
          178  +} [value_in_range $::pgalloc $::mrange]
          179  +do_test malloc5-2.2.1 {
          180  +  set data
          181  +} {1 2 3 4 5 6}
   179    182   
   180    183   do_test malloc5-3.1 {
   181    184     # Simple test to show that if two pagers are opened from within this
   182    185     # thread, memory is freed from both when sqlite3_release_memory() is
   183    186     # called.
   184    187     execsql {
   185    188       BEGIN;