1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-02 05:54:29 +03:00

Add testcase() macros beside each sqlite3_log() call to make sure it is

tested with both logging enable and disabled.

FossilOrigin-Name: 1168763d2cd96acfa0488198e8bc82f0c4fa35a3
This commit is contained in:
drh
2010-02-24 21:44:07 +00:00
parent 915c8bdbbd
commit af46dc12f7
7 changed files with 31 additions and 13 deletions

View File

@@ -269,6 +269,7 @@ static void *memsys5MallocUnsafe(int nByte){
*/
for(iBin=iLogsize; mem5.aiFreelist[iBin]<0 && iBin<=LOGMAX; iBin++){}
if( iBin>LOGMAX ){
testcase( sqlite3GlobalConfig.xLog!=0 );
sqlite3_log(SQLITE_NOMEM, "failed to allocate %u bytes", nByte);
return 0;
}