Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: third_party/sqlite/src/src/test2.c

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/src/test1.c ('k') | third_party/sqlite/src/src/test3.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/src/test2.c
diff --git a/third_party/sqlite/src/src/test2.c b/third_party/sqlite/src/src/test2.c
index 9aaa44267748926c2e30f07a6f6e715e58b8f457..fa7dd76ce4a3620bc7f414633f03960174899128 100644
--- a/third_party/sqlite/src/src/test2.c
+++ b/third_party/sqlite/src/src/test2.c
@@ -12,8 +12,6 @@
** Code for testing the pager.c module in SQLite. This code
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
-**
-** $Id: test2.c,v 1.74 2009/07/24 19:01:20 drh Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -74,7 +72,7 @@ static int pager_open(
int argc, /* Number of arguments */
const char **argv /* Text of each argument */
){
- u16 pageSize;
+ u32 pageSize;
Pager *pPager;
int nPage;
int rc;
@@ -583,6 +581,7 @@ static int testPendingByte(
if( argc!=2 ){
Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
" PENDING-BYTE\"", (void*)0);
+ return TCL_ERROR;
}
if( Tcl_GetInt(interp, argv[1], &pbyte) ) return TCL_ERROR;
rc = sqlite3_test_control(SQLITE_TESTCTRL_PENDING_BYTE, pbyte);
@@ -676,7 +675,9 @@ int Sqlitetest2_Init(Tcl_Interp *interp){
(char*)&sqlite3_diskfull_pending, TCL_LINK_INT);
Tcl_LinkVar(interp, "sqlite_diskfull",
(char*)&sqlite3_diskfull, TCL_LINK_INT);
+#ifndef SQLITE_OMIT_WSD
Tcl_LinkVar(interp, "sqlite_pending_byte",
(char*)&sqlite3PendingByte, TCL_LINK_INT | TCL_LINK_READ_ONLY);
+#endif
return TCL_OK;
}
« no previous file with comments | « third_party/sqlite/src/src/test1.c ('k') | third_party/sqlite/src/src/test3.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698