1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

All tests pass when SQLITE_OMIT_INTEGRITY_CHECK is defined. (CVS 2055)

FossilOrigin-Name: 158a2d16a8630e3b5892120f6ea68f2b0dc47eb3
This commit is contained in:
drh
2004-11-04 14:47:11 +00:00
parent a0bf265269
commit 40e016e492
13 changed files with 71 additions and 104 deletions

View File

@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
** $Id: test3.c,v 1.54 2004/11/04 14:30:06 danielk1977 Exp $
** $Id: test3.c,v 1.55 2004/11/04 14:47:12 drh Exp $
*/
#include "sqliteInt.h"
#include "pager.h"
@@ -562,10 +562,10 @@ static int btree_integrity_check(
const char **argv /* Text of each argument */
){
Btree *pBt;
char *zResult;
int nRoot;
int *aRoot;
int i;
char *zResult;
if( argc<3 ){
Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0],
@@ -581,7 +581,7 @@ static int btree_integrity_check(
#ifndef SQLITE_OMIT_INTEGRITY_CHECK
zResult = sqlite3BtreeIntegrityCheck(pBt, aRoot, nRoot);
#else
zResult = "ok";
zResult = 0;
#endif
if( zResult ){
Tcl_AppendResult(interp, zResult, 0);