Add no-regression tests for bugs 2670 and 2636
Pierre Marechal [Mon, 28 Jan 2008 10:41:39 +0000 (10:41 +0000)]
scilab/modules/fileio/tests/nonreg_tests/bug_2636.dia.ref [new file with mode: 0644]
scilab/modules/fileio/tests/nonreg_tests/bug_2636.tst [new file with mode: 0644]
scilab/modules/localization/tests/nonreg_tests/bug_2670.dia.ref [new file with mode: 0644]
scilab/modules/localization/tests/nonreg_tests/bug_2670.tst [new file with mode: 0644]

diff --git a/scilab/modules/fileio/tests/nonreg_tests/bug_2636.dia.ref b/scilab/modules/fileio/tests/nonreg_tests/bug_2636.dia.ref
new file mode 100644 (file)
index 0000000..2afef70
--- /dev/null
@@ -0,0 +1,16 @@
+// <-- Non-regression test for bug 2636 -->
+//
+// <-- Bugzilla URL -->
+// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2636
+//
+// <-- Short Description -->
+//    Scilab is not able to copy a file in an empty Directory.
+//
+// Copyright INRIA
+// Scilab Project - Pierre MARECHAL
+// Copyright INRIA 2007
+// Date : 28 Jan 2007
+mkdir(TMPDIR+"/bug_2636");
+mputl("test",TMPDIR+"/bug_2636.txt");
+copyfile(TMPDIR+"/bug_2636.txt",TMPDIR+"/bug_2636/bug_2636.txt");
+if mgetl(TMPDIR+"/bug_2636/bug_2636.txt") <> 'test' then bugmes();quit;end
diff --git a/scilab/modules/fileio/tests/nonreg_tests/bug_2636.tst b/scilab/modules/fileio/tests/nonreg_tests/bug_2636.tst
new file mode 100644 (file)
index 0000000..cbd72c0
--- /dev/null
@@ -0,0 +1,19 @@
+// <-- Non-regression test for bug 2636 -->
+//
+// <-- Bugzilla URL -->
+// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2636
+//
+// <-- Short Description -->
+//    Scilab is not able to copy a file in an empty Directory.
+//
+
+// Copyright INRIA
+// Scilab Project - Pierre MARECHAL
+// Copyright INRIA 2007
+// Date : 28 Jan 2007
+
+
+mkdir(TMPDIR+"/bug_2636");
+mputl("test",TMPDIR+"/bug_2636.txt");
+copyfile(TMPDIR+"/bug_2636.txt",TMPDIR+"/bug_2636/bug_2636.txt");
+if mgetl(TMPDIR+"/bug_2636/bug_2636.txt") <> 'test' then pause,end
diff --git a/scilab/modules/localization/tests/nonreg_tests/bug_2670.dia.ref b/scilab/modules/localization/tests/nonreg_tests/bug_2670.dia.ref
new file mode 100644 (file)
index 0000000..919a00c
--- /dev/null
@@ -0,0 +1,13 @@
+// <-- Non-regression test for bug 2670 -->
+//
+// <-- Bugzilla URL -->
+// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2670
+//
+// <-- Short Description -->
+//    getlanguage() returns a empty string (occurs both under Linux and Windows).
+//
+// Copyright INRIA
+// Scilab Project - Pierre MARECHAL
+// Copyright INRIA 2007
+// Date : 28 Jan 2007
+if length(getlanguage()) <> 5 then bugmes();quit;end
diff --git a/scilab/modules/localization/tests/nonreg_tests/bug_2670.tst b/scilab/modules/localization/tests/nonreg_tests/bug_2670.tst
new file mode 100644 (file)
index 0000000..d1debe6
--- /dev/null
@@ -0,0 +1,15 @@
+// <-- Non-regression test for bug 2670 -->
+//
+// <-- Bugzilla URL -->
+// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=2670
+//
+// <-- Short Description -->
+//    getlanguage() returns a empty string (occurs both under Linux and Windows).
+//
+
+// Copyright INRIA
+// Scilab Project - Pierre MARECHAL
+// Copyright INRIA 2007
+// Date : 28 Jan 2007
+
+if length(getlanguage()) <> 5 then pause,end