/*
 *  test_goodhandler.sli
 *
 *  This file is part of NEST.
 *
 *  Copyright (C) 2004 The NEST Initiative
 *
 *  NEST is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  NEST is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with NEST.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

/* BeginDocumentation
Name: testsuite::test_goodhandler - test if SLI returns exit code 0 when an error is handled by a correct user error handler.

Synopsis: (test_goodhandler) run -> 

Description:
This script establishes a user error handler and then provokes an
error. The error handler resets errodict::newerror to false. This is
a dumb, but correct way of handling errors. NEST should pass this
scipt and return exit code 0.

Author: Ruediger Kupper

FirstVersion: 03-jul-2008

SeeAlso: testsuite::test_pass, testsuite::test_fail, testsuite::test_stop, testsuite::test_goodhandler,  testsuite::test_lazyhandler, testsuite::test_badhandler
*/

% provoking an error with a good error handler:
{1 /hello add} stopped {errordict /newerror false put} if
