Closed ligurio closed 3 years ago
https://www.sqlite.org/src/doc/trunk/src/test_vfs.c
TestFaultInject ioerr_err; TestFaultInject full_err; TestFaultInject cantopen_err; ... if( (p->mask&TESTVFS_OPEN_MASK) && tvfsInjectIoerr(p) ) return SQLITE_IOERR; if( tvfsInjectCantopenerr(p) ) return SQLITE_CANTOPEN; if( tvfsInjectFullerr(p) ) return SQLITE_FULL;
All SQLite error injections could be implemented with existed error injections in unreliablefs.
https://www.sqlite.org/src/doc/trunk/src/test_vfs.c