Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Still a layer above the filesystem, but the closest example I'm aware of is the IO error testing in SQLite's test suite:

> I/O errors are simulated in both the TCL and TH3 test harnesses by inserting a new Virtual File System object that is specially rigged to simulate an I/O error after a set number of I/O operations. As with OOM error testing, the I/O error simulators can be set to fail just once, or to fail continuously after the first failure. Tests are run in a loop, slowly increasing the point of failure until the test case runs to completion without error. The loop is run twice, once with the I/O error simulator set to simulate only a single failure and a second time with it set to fail all I/O operations after the first failure.

https://www.sqlite.org/testing.html#i_o_error_testing



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: