/ Check-in [0bfcf3bc]
Login

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

Overview
Comment:Fix warning in test fixture code.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0bfcf3bcd77acab48344dde87cecb01e877f1a19
User & Date: shaneh 2010-07-08 16:22:52
Context
2010-07-08
16:50
Merged experimental crashsql() into trunk. check-in: 01b575ff user: shaneh tags: trunk
16:30
Changes to get crashsql() working on Windows. Closed-Leaf check-in: 8a5811ea user: shaneh tags: experimental
16:22
Fix warning in test fixture code. check-in: 0bfcf3bc user: shaneh tags: trunk
16:22
Fix test case number issue in walcrash.test. check-in: 6a46e641 user: shaneh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/test6.c.

167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
}

/*
** Wrapper around the sqlite3OsWrite() function that avoids writing to the
** 512 byte block begining at offset PENDING_BYTE.
*/
static int writeDbFile(CrashFile *p, u8 *z, i64 iAmt, i64 iOff){
  int rc;
  int iSkip = 0;
  if( iOff==PENDING_BYTE && (p->flags&SQLITE_OPEN_MAIN_DB) ){
    iSkip = 512;
  }
  if( (iAmt-iSkip)>0 ){
    rc = sqlite3OsWrite(p->pRealFile, &z[iSkip], iAmt-iSkip, iOff+iSkip);
  }







|







167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
}

/*
** Wrapper around the sqlite3OsWrite() function that avoids writing to the
** 512 byte block begining at offset PENDING_BYTE.
*/
static int writeDbFile(CrashFile *p, u8 *z, i64 iAmt, i64 iOff){
  int rc = SQLITE_OK;
  int iSkip = 0;
  if( iOff==PENDING_BYTE && (p->flags&SQLITE_OPEN_MAIN_DB) ){
    iSkip = 512;
  }
  if( (iAmt-iSkip)>0 ){
    rc = sqlite3OsWrite(p->pRealFile, &z[iSkip], iAmt-iSkip, iOff+iSkip);
  }