summaryrefslogtreecommitdiffstats
path: root/scilab/modules/functions/tests/nonreg_tests/bug_4841.tst
blob: d56f48574d5885cd57841465738bed148be33c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Allan CORNET
//
//  This file is distributed under the same license as the Scilab package.
// =============================================================================
//
// <-- JVM NOT MANDATORY -->
//
// <-- Non-regression test for bug 4841 -->
//
// <-- Bugzilla URL -->
// http://bugzilla.scilab.org/show_bug.cgi?id=4841
//
// <-- Short Description -->
// functions created by 'getd' were unknown to scilab.

cd TMPDIR;
mkdir('bug_2807');
txt = ['function bug_2807()';
       'endfunction'];
mputl(txt, TMPDIR + '/bug_2807/bug_2807.sci');
cd(SCI);
getd(TMPDIR + '/bug_2807');
v = getvariablesonstack();
if grep(v,'bug_2807') == [] then pause, end