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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user