/ Check-in [772a3845]
Login

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

Overview
Comment:Fix a bug in test code (test_vfs.c).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 772a3845f8ef5cd3131992c45f6ce607977820f3
User & Date: dan 2011-01-14 11:51:28
Context
2011-01-14
15:17
Fix comments, including some documentation comments, in the page cache logic. No code changes. check-in: c80e9c1a user: drh tags: trunk
11:51
Fix a bug in test code (test_vfs.c). check-in: 772a3845 user: dan tags: trunk
2011-01-13
16:10
Fix a typo on the sqlite3_open_v2() documentation. check-in: b0add45a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

install-sh became a regular file.


Changes to src/test_vfs.c.

   536    536     pFd = (TestvfsFd *)ckalloc(sizeof(TestvfsFd) + PARENTVFS(pVfs)->szOsFile);
   537    537     memset(pFd, 0, sizeof(TestvfsFd) + PARENTVFS(pVfs)->szOsFile);
   538    538     pFd->pShm = 0;
   539    539     pFd->pShmId = 0;
   540    540     pFd->zFilename = zName;
   541    541     pFd->pVfs = pVfs;
   542    542     pFd->pReal = (sqlite3_file *)&pFd[1];
          543  +  memset(pTestfile, 0, sizeof(TestvfsFile));
   543    544     pTestfile->pFd = pFd;
   544    545   
   545    546     /* Evaluate the Tcl script: 
   546    547     **
   547    548     **   SCRIPT xOpen FILENAME
   548    549     **
   549    550     ** If the script returns an SQLite error code other than SQLITE_OK, an

test/progress.test became executable.


tool/mkopts.tcl became executable.