summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Couvert <vincent.couvert@scilab.org>2007-06-21 09:56:39 +0000
committerVincent Couvert <vincent.couvert@scilab.org>2007-06-21 09:56:39 +0000
commit288e6bb78894e0003e34a944f8f570611898a826 (patch)
tree7ea06a1938253e66b610b88511222ea6c0c7da8a /tests
parentfa7dadd328cabfd178da307ce1a12dffa97d9eee (diff)
downloadscilab-288e6bb78894e0003e34a944f8f570611898a826.zip
scilab-288e6bb78894e0003e34a944f8f570611898a826.tar.gz
Add test for bug 2428
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2428.sci29
-rw-r--r--tests/nonRegression/list_nonreg.txt1
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2428.sci b/tests/nonRegression/bug2428.sci
new file mode 100644
index 0000000..bbc23d3
--- /dev/null
+++ b/tests/nonRegression/bug2428.sci
@@ -0,0 +1,29 @@
1// Non-regression test file for bug 2428
2// Copyright INRIA
3// Scilab Project - Vincent COUVERT
4
5//mode(-1);
6clear;
7
8MFILE=TMPDIR+"/bug2428.m"
9SCIFILE=TMPDIR+"/bug2428.sci"
10
11correct=%T;
12
13MFILECONTENTS=["function bug2428";
14 "global gui_settings";
15 "i = 1;";
16 "a = gui_settings.pn_mem{i}"]
17
18fd=mopen(MFILE,"w");
19mputl(MFILECONTENTS,fd);
20mclose(fd);
21
22ierr=execstr("mfile2sci("""+MFILE+""","""+TMPDIR+""")","errcatch")
23correct=correct&ierr==0;
24
25//affich_result(correct,2428);
26disp(correct);
27clear
28
29
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index 00f0ddd..6abe801 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -172,5 +172,6 @@
1722407 1722407
1732410 1732410
1742414 1742414
1752428
1752429 1762429
1762430 1772430