Interative test fixed for Linux. 65/15465/5
Cedric Delamarre [Tue, 4 Nov 2014 11:27:34 +0000 (12:27 +0100)]
exec SCI/modules/api_scilab/tests/nonreg_tests/bug_12426.tst

Change-Id: I434661dddb621ff2f6c30246aa22af14107a5569

scilab/modules/api_scilab/tests/nonreg_tests/bug_12426.tst
scilab/modules/api_scilab/tests/nonreg_tests/build_bug_12426_gateway.sce

index 50f6cff..8d2df41 100644 (file)
 // <-- Short Description -->
 // By using addErrorMessage, random string error can be displayed.
 
+// exec SCI/modules/api_scilab/tests/nonreg_tests/bug_12426.tst
 ilib_verbose(0);
-dir = get_absolute_file_path("bug_12426.tst");
-exec(dir + "/build_bug_12426_gateway.sce", "errcatch", -1);
-exec(TMPDIR + "/bug_12426_gateway/loader.sce", "errcatch", -1);
+directory = get_absolute_file_path("bug_12426.tst");
+exec(directory + "/build_bug_12426_gateway.sce");
+exec(TMPDIR + "/bug_12426_gateway/loader.sce");
 
 n = int32(1);
 disp("add 1 error message");
index ab61cfc..01a8f34 100644 (file)
@@ -31,26 +31,24 @@ if getos() == "Windows" then
 
 elseif isdir(lib1include)
     // Unix source version
-    libs   = SCI + "/modules/" + lib1 + "/.libs/lib" + lib1;
-    cflags = "-I " lib1include;
+    libs   = SCI + "/modules/" + lib1 + "/.libs/libsci" + lib1;
+    cflags = "-I " + lib1include;
 else
     // Unix binary version
     SCI_LIB     = strsubst(SCI,"/share\/scilab$/", "lib/scilab", "r");
     SCI_INCLUDE = strsubst(SCI,"/share\/scilab$/", "include/scilab", "r");
-    libs        = SCI_LIB + "/lib" + lib1 + ..
-    SCI_LIB + "/lib" + lib1;
+    libs        = SCI_LIB + "/libscilab-cli";
     cflags      = "-I " + SCI_INCLUDE;
 end
 
 // name known in scilab, C function called
 table = [func1, "sci_" + func1];
 
-libname = ilib_build(ilib_name, table, files, libs, [], "", cflags);
+ilib_build(ilib_name, table, files, libs, [], "", cflags);
 
 cd(previous_dir);
 
 clear ilib_build;
-clear libname;
 clear table;
 clear libs;
 clear files;