Hacker News new | ask | show | jobs
by seanhunter 1256 days ago
Not in the Linux kernel. In the Linux kernel it has traditionally always been done by the developer sticking lots of printk statements into their code until they are happy with the outputs and then removing most of them. Make of that what you will.
2 comments

LOL that is so false that is not even worth correcting.
Actually could you correct it? I don't know anything about the Linux kernel so I'm curious.
I'll correct myself. That was how it was done circa 2000-2005, but my info was way out of date because I haven't followed kernel development much for a while. Here's some stuff about how it's done now. https://www.kernel.org/doc/html/latest/dev-tools/testing-ove...

Basically there is a system called KUnit for writing white box unit tests and there is code coverage to determine coverage as you would expect, then there are systems for static analysis and verifying assertions.

This is so wrong!!
As in that's not how it's done, or that's not how it should be done?