Adapt test to Scilab 6:
[scilab.git] / scilab / modules / console / tests / nonreg_tests / bug_13226.tst
index d51345d..7f85b67 100644 (file)
@@ -13,7 +13,8 @@
 //
 // <-- Short Description -->
 // Completion with accentued chars could lead to a a crash
-
+//
+// <-- LINUX ONLY -->
 file_path = SCI + "/modules/console/tests/nonreg_tests/";
 mkdir(TMPDIR + "/console");
 cd(TMPDIR + "/console");
@@ -26,11 +27,7 @@ for i = 1 : size(files, "*")
     copyfile(file_path + "/" + files(i), TMPDIR + "/console");
 end
 
-if getos() == "Windows" then
-    libs   = SCI   + "/bin/sciconsole";
-    cflags = "-I " + SCI +"/modules/console/includes";
-
-elseif isdir(SCI+"/modules/console/includes")
+if isdir(SCI+"/modules/console/includes") then
     // Unix source version
     libs   = SCI + "/modules/console/.libs/libsciconsole";
     cflags = "-I " + SCI +"/modules/console/includes -I " + SCI + "/modules/localization/includes";
@@ -40,15 +37,14 @@ else
     SCI_LIB     = strsubst(SCI,"/share\/scilab$/","lib/scilab"     ,"r");
     SCI_INCLUDE = strsubst(SCI,"/share\/scilab$/","include/scilab" ,"r");
     libs        = SCI_LIB + "/libsciconsole";
-    cflags      = "-I " + SCI_INCLUDE
+    cflags      = "-I " + SCI_INCLUDE;
 end
 
 // name known in scilab , C function called
 table = ["completecommandline"    ,"sci_completecommandline"];
-libname = ilib_build(ilib_name,table,files,libs,[],"",cflags);
+ilib_build(ilib_name,table,files,libs,[],"",cflags);
 
 clear ilib_build;
-clear libname;
 clear table;
 clear libs;
 clear files;