1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Run fuzzershell as part of the valgrindtest makefile target.

FossilOrigin-Name: 0bb96a037bd7179cb3a6137bb29827fc7d72ec3f
This commit is contained in:
drh
2015-04-24 16:53:03 +00:00
parent f1e1736fe1
commit 8ea5eca183
6 changed files with 32 additions and 15 deletions

View File

@ -631,8 +631,15 @@ int main(int argc, char **argv){
if( nTest==1 ){
/* Simulate an error if the TEST_FAILURE environment variable is "5" */
char *zFailCode = getenv("TEST_FAILURE");
if( zFailCode && zFailCode[0]=='5' && zFailCode[1]==0 ){
abendError("simulated failure");
if( zFailCode ){
if( zFailCode[0]=='5' && zFailCode[1]==0 ){
abendError("simulated failure");
}else if( zFailCode[0]!=0 ){
/* If TEST_FAILURE is something other than 5, just exit the test
** early */
printf("\nExit early due to TEST_FAILURE being set");
break;
}
}
}
}