Re: We should test if EUPHORIA is handling bad code well
- Posted by ne1uno Sep 03, 2008
- 876 views
SDPringle said...
If euphoria just crashes without generating an ex.err at all the test would return true. This is a big problem. Let me and some of you developers design a test framework for how testing that bad code is handled correctly.
what about write a 0 to a log file on start, just before exit write a 1. the test calling program will know the program under test at least got to write either a zero or a 1.
is there another obvious way for a program to detect a crash? a new instance of ex.err might also show a machine exception that could be counted as a passed test if it wasn't anticipated.