diff options
author | Vincent Couvert <vincent.couvert@scilab.org> | 2007-06-21 09:56:39 +0000 |
---|---|---|
committer | Vincent Couvert <vincent.couvert@scilab.org> | 2007-06-21 09:56:39 +0000 |
commit | 288e6bb78894e0003e34a944f8f570611898a826 (patch) | |
tree | 7ea06a1938253e66b610b88511222ea6c0c7da8a /tests | |
parent | fa7dadd328cabfd178da307ce1a12dffa97d9eee (diff) | |
download | scilab-288e6bb78894e0003e34a944f8f570611898a826.zip scilab-288e6bb78894e0003e34a944f8f570611898a826.tar.gz |
Add test for bug 2428
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nonRegression/bug2428.sci | 29 | ||||
-rw-r--r-- | tests/nonRegression/list_nonreg.txt | 1 |
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); | ||
6 | clear; | ||
7 | |||
8 | MFILE=TMPDIR+"/bug2428.m" | ||
9 | SCIFILE=TMPDIR+"/bug2428.sci" | ||
10 | |||
11 | correct=%T; | ||
12 | |||
13 | MFILECONTENTS=["function bug2428"; | ||
14 | "global gui_settings"; | ||
15 | "i = 1;"; | ||
16 | "a = gui_settings.pn_mem{i}"] | ||
17 | |||
18 | fd=mopen(MFILE,"w"); | ||
19 | mputl(MFILECONTENTS,fd); | ||
20 | mclose(fd); | ||
21 | |||
22 | ierr=execstr("mfile2sci("""+MFILE+""","""+TMPDIR+""")","errcatch") | ||
23 | correct=correct&ierr==0; | ||
24 | |||
25 | //affich_result(correct,2428); | ||
26 | disp(correct); | ||
27 | clear | ||
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 @@ | |||
172 | 2407 | 172 | 2407 |
173 | 2410 | 173 | 2410 |
174 | 2414 | 174 | 2414 |
175 | 2428 | ||
175 | 2429 | 176 | 2429 |
176 | 2430 | 177 | 2430 |