3 ms·
My point was that depending on how you structure your tests knowing the location of the assert might not help you, for instance you could have a helper function
by simias 8y ago
My point was that depending on how you structure your tests knowing the location of the assert might not help you, for instance you could have a helper function that would validate something and generate a failure if something goes wrong, in this case knowing that this specific function failed doesn't help much understanding what test specifically failed. My point was that if you need GDB to figure out what exactly failed then you don't have a very user friendly test framework.
- ainar-g 8y agoOh, I see now. Yeah, trying to make assert output a dynamically constructed message does seem like a PITA.