Lines Matching defs:sqlite3FaultSim
20239 int (*xTestCallback)(int); /* Invoked by sqlite3FaultSim() */
20896 # define sqlite3FaultSim(X) SQLITE_OK
20898 SQLITE_PRIVATE int sqlite3FaultSim(int);
34137 if( sqlite3FaultSim(200) ){
34224 ** (via the sqlite3FaultSim() term of the conditional) for testing
34226 if( sqlite3GlobalConfig.bCoreMutex==0 || sqlite3FaultSim(200) ){
34934 ** Calls to sqlite3FaultSim() are used to simulate a failure during testing,
34938 ** In deployment, sqlite3FaultSim() *always* return SQLITE_OK (0). The
34939 ** sqlite3FaultSim() function only returns non-zero during testing.
34943 ** each call to sqlite3FaultSim() is relayed to that application-supplied
34945 ** callback is returned by sqlite3FaultSim().
34947 ** The integer argument to sqlite3FaultSim() is a code to identify which
34948 ** sqlite3FaultSim() instance is being invoked. Each call to sqlite3FaultSim()
34953 SQLITE_PRIVATE int sqlite3FaultSim(int iTest){
63563 if( sqlite3FaultSim(400) ) return SQLITE_IOERR;
65592 res = sqlite3FaultSim(650);
65693 if( iPage>0 && sqlite3FaultSim(600) ) rc = SQLITE_NOMEM;
71448 if( sqlite3FaultSim(410) ){
75675 if( sqlite3FaultSim(413) ){
76797 if( sqlite3FaultSim(412) ) pPage->isInit = 0;
76890 if( sqlite3FaultSim(412) ) pPage->isInit = 0;
103441 if( sqlite3FaultSim(201) ) return SQLITE_IOERR_READ;
103988 pNew = sqlite3FaultSim(100) ? 0 : (MergeEngine*)sqlite3MallocZero(nByte);
104112 if( sqlite3FaultSim(202) ) return SQLITE_IOERR_ACCESS;
104802 (sqlite3FaultSim(100) ? 0 : sqlite3MallocZero(sizeof(*pIncr)));
136071 && sqlite3FaultSim(411)==SQLITE_OK ){
136072 /* The sqlite3FaultSim() call allows this corruption test to be
142440 if( sqlite3FaultSim(300) ){
166080 && (HasRowid(pTab) || pWInfo->pSelect!=0 || sqlite3FaultSim(700))
172607 ** sqlite3_realloc() that includes a call to sqlite3FaultSim() to facilitate
172611 return sqlite3FaultSim(700) ? 0 : sqlite3_realloc(pOld, newSize);
179791 return sqlite3FaultSim(500);
183982 ** Arrange to invoke xCallback() whenever sqlite3FaultSim() is called,
183985 ** As a test of the fault simulator mechanism itself, sqlite3FaultSim(0)
183987 ** value from sqlite3FaultSim(0) becomes the return from
184001 rc = sqlite3FaultSim(0);