Unit tests and segfaults
Jacob Carlborg
doob at me.com
Tue Dec 11 23:21:31 PST 2012
On 2012-12-11 20:21, Russel Winder wrote:
> I appreciate where you are coming from with respect to general testing
> strategy, and am basically in agreement with what you say. However in
> this specific case a segfault is just another exception. In terms of
> recursion the exception is "recursion stack limit reached" it just
> happens to be spelt "segfault"
If you actually want to rely on segfaults there are code out there that
can catch a segfault and convert it in to an exception. Actully, this
got recently merged into druntime:
https://github.com/D-Programming-Language/druntime/commit/ae3ef074f4cad03cc993737dcae17d2e1e16779f
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list