News for hackers. Stuff that matters.
Re:Ask HN: Why the Linux Kernel doesn't have unit tests? by xg15 on Saturday November 26, 2022 @03:48AM (#33751092)
Ok, you're essentially saying that kernel code is too important to be tested. Honestly, that logic sounds like Effective Altruism levels of twisted to me.

So if tests don't cut it, what does the Kernel community then do instead of testing to verify correctness?

> Do you really need tests for the read(2) syscall when Linux is running on a billion devices, and that syscall is called some 10^12 times per second globally?

That's exactly the kind of code that needs tests.

What happens if someone changes some code that affects the read call and expects it to run on said billion of devices?

There are no comments on this comment yet.