summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Marechal <pierre.marechal@scilab.org>2006-10-31 12:43:29 +0000
committerPierre Marechal <pierre.marechal@scilab.org>2006-10-31 12:43:29 +0000
commitebca913debd34b214a46cc80a04f3bd8a4f50509 (patch)
tree6c4c59f372e496dea989666b3584cac0b7120ea0 /tests
parent0a33f265920bbe5b7d6d47402762619b6ec0f8fd (diff)
downloadscilab-ebca913debd34b214a46cc80a04f3bd8a4f50509.zip
scilab-ebca913debd34b214a46cc80a04f3bd8a4f50509.tar.gz
Add nonregression test for bug 2181
Diffstat (limited to 'tests')
-rw-r--r--tests/nonRegression/bug2181.sci31
-rw-r--r--tests/nonRegression/list_nonreg.txt1
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/nonRegression/bug2181.sci b/tests/nonRegression/bug2181.sci
new file mode 100644
index 0000000..ac163ee
--- /dev/null
+++ b/tests/nonRegression/bug2181.sci
@@ -0,0 +1,31 @@
1// Non-regression test file for bug 2181
2// Pierre MARECHAL - Scilab Project
3// Copyright INRIA
4// 30 octobre 2006
5
6mode(-1);
7clear;
8
9if MSDOS then
10
11 test1 = getrelativefilename("D:\","C:\Program Files\scilab\readme.txt");
12 test2 = getrelativefilename("C:\","C:\Program Files\scilab\readme.txt");
13 test3 = getrelativefilename("C:\Documents and Settings","C:\Program Files\scilab\readme.txt");
14 test4 = getrelativefilename("C:\PROGRAM FILES\toto","c:\program files\scilab\readme.txt");
15
16 res1 = ( test1 == "C:\Program Files\scilab\readme.txt" );
17 res2 = ( test2 == "C:\Program Files\scilab\readme.txt" );
18 res3 = ( test3 == "..\Program Files\scilab\readme.txt" );
19 res4 = ( test4 == "..\scilab\readme.txt" );
20
21 if (res1 & res2 & res3) then
22 affich_result(%T,2181);
23 else
24 affich_result(%F,2181);
25 end
26
27else
28 affich_result(%T,2181);
29end
30
31clear
diff --git a/tests/nonRegression/list_nonreg.txt b/tests/nonRegression/list_nonreg.txt
index b9d5fa8..39b5ea5 100644
--- a/tests/nonRegression/list_nonreg.txt
+++ b/tests/nonRegression/list_nonreg.txt
@@ -154,3 +154,4 @@
1542137 1542137
1552149 1552149
1562162 1562162
1572181