3 ms·
The sanitizer are all great! I've also had TSAN find non-trivial issues with my threaded code. There is also the trick to declare the functions you want to tes
by gpderetta 4y ago
The sanitizer are all great! I've also had TSAN find non-trivial issues with my threaded code.
There is also the trick to declare the functions you want to test as constexpr functions and write your unit tests as static assertions to catch UB (well, modulo bugs in the constexpr support in the compiler of course).