/ Check-in [bcbc6503]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fix an 8-byte alignment problem on the "crash test" harness (test code, not in the core) that causes problems on Sparc.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bcbc65030fa7c61f94100142e94ba2a5774f85b0
User & Date: drh 2013-10-15 14:29:32
Context
2013-10-15
15:35
Changes to test code to make sure no server threads are left running after server1.test finishes. check-in: 1086e00b user: dan tags: trunk
14:29
Fix an 8-byte alignment problem on the "crash test" harness (test code, not in the core) that causes problems on Sparc. check-in: bcbc6503 user: drh tags: trunk
11:58
Fix harmless macro redefinition warnings in the totype extension. check-in: c9c1f8d6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test6.c.

   129    129     char *zName;
   130    130     int flags;                           /* Flags the file was opened with */
   131    131   
   132    132     /* Cache of the entire file. This is used to speed up OsRead() and 
   133    133     ** OsFileSize() calls. Although both could be done by traversing the
   134    134     ** write-list, in practice this is impractically slow.
   135    135     */
   136         -  int iSize;                           /* Size of file in bytes */
          136  +  u8 *zData;                           /* Buffer containing file contents */
   137    137     int nData;                           /* Size of buffer allocated at zData */
   138         -  u8 *zData;                           /* Buffer containing file contents */
          138  +  i64 iSize;                           /* Size of file in bytes */
   139    139   };
   140    140   
   141    141   struct CrashGlobal {
   142    142     WriteBuffer *pWriteList;     /* Head of write-list */
   143    143     WriteBuffer *pWriteListEnd;  /* End of write-list */
   144    144   
   145    145     int iSectorSize;             /* Value of simulated sector size */