1/*
2 *  ticket-926.sli
3 *
4 *  This file is part of NEST.
5 *
6 *  Copyright (C) 2004 The NEST Initiative
7 *
8 *  NEST is free software: you can redistribute it and/or modify
9 *  it under the terms of the GNU General Public License as published by
10 *  the Free Software Foundation, either version 2 of the License, or
11 *  (at your option) any later version.
12 *
13 *  NEST is distributed in the hope that it will be useful,
14 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *  GNU General Public License for more details.
17 *
18 *  You should have received a copy of the GNU General Public License
19 *  along with NEST.  If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23/** @BeginDocumentation
24
25Name: testsuite::ticket-926 Ensure stdp_dopamine_synapse does not lead to segfault
26
27Synopsis: (ticket-926) run -> NEST exits if test fails
28
29Description:
30This ticket ensures that stdp_dopamine_synapse does not lead to a segfault, even
31if volume transmitter is not set.
32
33Author: Hans Ekkehard Plesser, 2014-11-12
34 */
35
36(unittest) run
37/unittest using
38
39% preparatory work for proper test code in case NEST is complied with MPI support
40% For now we just ignore this test, this will later be replaced
41% by a restart of NEST with a serial binary.
42skip_if_have_mpi
43
44M_ERROR setverbosity
45
46% the following code must execute without causing a segmentation fault
47{
48  /sg /spike_generator << /spike_times [ 5.0 ] >> Create def
49  /pn /parrot_neuron Create def
50  /nrn /iaf_psc_alpha Create def
51  sg pn Connect
52  pn nrn /stdp_dopamine_synapse Connect
53  10 Simulate
54} passorfailbutnocrash_or_die
55
56
57
58endusing