1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Move error simulation code from the sqlite3_os_init() functions into a wrapper.

FossilOrigin-Name: 67ad21abf88abb7a3e2eacddcaf1ab5d54149807
This commit is contained in:
dan
2009-08-17 15:52:25 +00:00
parent 7c7c311da5
commit 3d6e060b48
9 changed files with 57 additions and 43 deletions

View File

@@ -5126,13 +5126,6 @@ int sqlite3_os_init(void){
};
unsigned int i; /* Loop counter */
#ifdef SQLITE_TEST
/* This block is used by test code only to simulate the effect on sqlite
** of returning an error from within the sqlite3_os_init() function. */
int sqlite3TestFailOsInit(void);
if( sqlite3TestFailOsInit() ){ return SQLITE_ERROR; }
#endif
/* Register all VFSes defined in the aVfs[] array */
for(i=0; i<(sizeof(aVfs)/sizeof(sqlite3_vfs)); i++){
sqlite3_vfs_register(&aVfs[i], i==0);