summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug2396.sci
blob: 73069104c92f1699997c42bc4c1673be3f684571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// <-- Non-regression test for bug 2396 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2396
//
// <-- Short Description -->
//    Scilab crashes on call to feval. I might have defined a weird function 
//    to be feval'ed, but scilab should not crash. The steps to reproduce the 
//    bug cause scilab to hang with the error message below, I have to kill 
//    it.
//
//    Matthias

// Serge Steer - Scilab Project
// Copyright INRIA
// 14 may 2007

a1 = [1 2 3]
a2 = [1 3 4 5 1 6 7]
function y=elfind(x),y = (find(a2 == x) ~= []),endfunction
T=execstr('z=feval(a1,elfind)','errcatch')==98

affich_result(T,2396);