unittest::passorfailbutnocrash_or_die - Execute a code block and exit with exit code 3 if it crashe
{ code } [string] passorfailbutnocrash_or_die -> -
{ 1 0 add } passorfailbutnocrash_or_die -> success % code passes
{ 1 0 div } passorfailbutnocrash_or_die -> success % code fails, but does not crash
This procedure executes the code. Anything except a crash (e.g. due to uncaught C++ exception such
as a segfault) is considered a pass.
This function will quit nest (exit code 3) if the code crashed.
Diesmann, Plesser
2014-11-12
/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/unittest.sli