We need more of these „How project X is tested” articles. Keep them coming!
Here’s one on SQLite: https://www.sqlite.org/testing.html
Here’s one on SQLite: https://www.sqlite.org/testing.html
I've had to resort to grotesque hacks before to simulate full disks in test suites — e.g. replacing a file descriptor with a nonsense number to trigger an error at the call site where a write would have failed.
Now that I know /dev/full exists, I can write a test which, although it works only on a subset of operating systems, still exercises a code path which applies to all of them.