News for hackers. Stuff that matters.
Re:MinUnit – A minimal unit testing framework for C (2002) by simias on Saturday August 18, 2018 @05:51AM (#17787729)
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.
Re:MinUnit – A minimal unit testing framework for C (2002) by ainar-g on Saturday August 18, 2018 @08:43AM (#17788207)
Oh, I see now. Yeah, trying to make assert output a dynamically constructed message does seem like a PITA.