Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How we develop curl to keep it safe in tens of billions of installations (haxx.se)
22 points by nixcraft on Dec 13, 2021 | hide | past | favorite | 3 comments


> We do “torture testing“: run a test case once and count the number of “fallible” function calls it makes. Those are calls to memory allocation, file operations, socket read/write etc. Then re-run the test that many times, and for each new iteration we make another one of the fallible functions fail and return error. Verify that no memory leaks or crashes occur. Do this on all tests.

Never heard of this one before, that sounds really clever.


Mutation testing of which this one form is around for a while [1].

Getting teams to adopt that level of discipline is a challenge.

https://en.m.wikipedia.org/wiki/Mutation_testing


> We do “torture testing“: run a test case once and count the number of “fallible” function calls it makes. Those are calls to memory allocation, file operations, socket read/write etc. Then re-run the test that many times, and for each new iteration we make another one of the fallible functions fail and return error. Verify that no memory leaks or crashes occur. Do this on all tests.

Sounds like chaos engineering but low in the stack, or am I misunderstanding? I know the term was coined by netflix but the context in which they applied it was fairly zoomed out.

https://en.wikipedia.org/wiki/Chaos_engineering




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

Search: