FPCUnit testcases: useless error/call stack produced if AssertFalse() etc fails
Original Reporter info from Mantis: ahydra
-
Reporter name: Colin Haywood
Original Reporter info from Mantis: ahydra
- Reporter name: Colin Haywood
Description:
When using AssertFalse(), AssertNull(), etc in FPCUnit testcases, if you're running the project from the IDE and the assert fails, the resulting error/exception message ("gdb unparsed remainder:s 0x0 out of bounds") and call stack are somewhat useless. Please see attached screenshots.
This may be related to my earlier bug I posted about asserts (http://bugs.freepascal.org/view.php?id=29959).
Steps to reproduce:
Create a new FPCUnit Console Test Application project and add the line "AssertFalse(true);" to the TestHookUp procedure. Set run parameters to "-a" and compile and run. When the error message appears, click "break" then open the Call Stack window.
Mantis conversion info:
- Mantis ID: 29960
- OS: Windows 7
- Build: 49931
- Platform: Win32
- Version: 1.4.4