Hacker News new | ask | show | jobs
by spc476 171 days ago
You forgot difficult. How do you test a system call failure? How do you test a system call failure when the first N calls need to pass? Be careful how you answer, some answers technically fall into the "undefined behavior" category (if you are using C or C++).
1 comments

... Is that not what mocking is for?