Re:Ask HN: Why the Linux Kernel doesn't have unit tests?
by svenpeter on Friday November 25, 2022 @01:01PM
(#33745071)
That merge only has fixed because of how the development model works: there’s a merge window where new features are merged and which then becomes -rc1.
After that only fixes are allowed until the final release of that version and then the merge window opens again.
[ Parent
| on HN ]
Re:Ask HN: Why the Linux Kernel doesn't have unit tests?
by thunky on Friday November 25, 2022 @01:20PM
(#33745262)
That makes sense, so I just picked another commit at random without a -rc tag:
https://github.com/torvalds/linux/commit/c60c152230828825c06...
The fix is to change && to ||
This seems like the exact type of bug that a unit test could prevent.