summaryrefslogtreecommitdiffstats
path: root/scilab/modules
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2010-05-11 14:27:50 +0200
committerClément DAVID <clement.david@scilab.org>2010-05-18 15:16:33 +0200
commit32a34749ffef095d1203bc2e028e590e82dce5a1 (patch)
tree536c9a365fcbabf74ab7beda41af4c02785fb5dd /scilab/modules
parent7d0334b9cc1c9755a549630192f0171ecf6aba28 (diff)
downloadscilab-32a34749ffef095d1203bc2e028e590e82dce5a1.zip
scilab-32a34749ffef095d1203bc2e028e590e82dce5a1.tar.gz
bug 4841 already fixed since 5.1.1
Change-Id: I0effd05f2c130adf79eaf99405dbf6b2658c69e5
Diffstat (limited to 'scilab/modules')
-rw-r--r--scilab/modules/functions/tests/nonreg_tests/bug_4841.dia.ref25
-rw-r--r--scilab/modules/functions/tests/nonreg_tests/bug_4841.tst26
2 files changed, 51 insertions, 0 deletions
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_4841.dia.ref b/scilab/modules/functions/tests/nonreg_tests/bug_4841.dia.ref
new file mode 100644
index 0000000..f2cac29
--- /dev/null
+++ b/scilab/modules/functions/tests/nonreg_tests/bug_4841.dia.ref
@@ -0,0 +1,25 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Allan CORNET
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7//
8// <-- JVM NOT MANDATORY -->
9//
10// <-- Non-regression test for bug 4841 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/show_bug.cgi?id=4841
14//
15// <-- Short Description -->
16// functions created by 'getd' were unknown to scilab.
17cd TMPDIR;
18mkdir('bug_2807');
19txt = ['function bug_2807()';
20 'endfunction'];
21mputl(txt, TMPDIR + '/bug_2807/bug_2807.sci');
22cd(SCI);
23getd(TMPDIR + '/bug_2807');
24v = getvariablesonstack();
25if grep(v,'bug_2807') == [] then bugmes();quit;end
diff --git a/scilab/modules/functions/tests/nonreg_tests/bug_4841.tst b/scilab/modules/functions/tests/nonreg_tests/bug_4841.tst
new file mode 100644
index 0000000..d56f485
--- /dev/null
+++ b/scilab/modules/functions/tests/nonreg_tests/bug_4841.tst
@@ -0,0 +1,26 @@
1// =============================================================================
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Allan CORNET
4//
5// This file is distributed under the same license as the Scilab package.
6// =============================================================================
7//
8// <-- JVM NOT MANDATORY -->
9//
10// <-- Non-regression test for bug 4841 -->
11//
12// <-- Bugzilla URL -->
13// http://bugzilla.scilab.org/show_bug.cgi?id=4841
14//
15// <-- Short Description -->
16// functions created by 'getd' were unknown to scilab.
17
18cd TMPDIR;
19mkdir('bug_2807');
20txt = ['function bug_2807()';
21 'endfunction'];
22mputl(txt, TMPDIR + '/bug_2807/bug_2807.sci');
23cd(SCI);
24getd(TMPDIR + '/bug_2807');
25v = getvariablesonstack();
26if grep(v,'bug_2807') == [] then pause, end