test_run failed: Slave Scilab exited with error code 127
Reported by ROUX philippe
BUG DESCRIPTION:
----------------
after a fresh install of scilab-6.0.2 when running test_run() ALL SCILAB unit tests fail (for every module) with the same error message :
ERROR LOG:
----------
failed: Slave Scilab exited with error code 127
HOW TO REPRODUCE THE BUG:
-------------------------
--> test_run("ast",[],"no_check_ref")
TMPDIR = /tmp/SCI_TMP_20383_fZszyE
Module 001/001 - [ast] :
001/154 - [ast] Sand.........................................failed: Slave Scilab exited with error code 127
002/154 - [ast] Sor..........................................failed: Slave Scilab exited with error code 127
003/154 - [ast] addition.....................................failed: Slave Scilab exited with error code 127
004/154 - [ast] addition_output_type.........................failed: Slave Scilab exited with error code 127
005/154 - [ast] analysis1....................................failed: Slave Scilab exited with error code 127
006/154 - [ast] analysis2....................................skipped: not yet fixed
....
--------------------------------------------------------------------------
Summary
tests 150 - 100 %
passed 0 - 0 %
failed 150 - 100 %
skipped 4
length 6.18 sec
--------------------------------------------------------------------------
Details
TEST : [ast] Sand
failed: Slave Scilab exited with error code 127
TEST : [ast] Sor
failed: Slave Scilab exited with error code 127
TEST : [ast] addition
failed: Slave Scilab exited with error code 127
TEST : [ast] addition_output_type
failed: Slave Scilab exited with error code 127
TEST : [ast] analysis1
failed: Slave Scilab exited with error code 127
OTHER INFORMATION:
------------------
the problem comes from line 811 in /usr/share/scilab-6.0.2/share/scilab/modules/development_tools/macros/test_run.sci
if (getos() <> "Windows") & ~isfile(SCI+"/bin/scilab") then // bug line 811
SCI_BIN = strsubst(SCI,"share/scilab","");
disp(SCI_BIN)
else
SCI_BIN = SCI;
end
due to SCI_BIN the command line for tests calls "/usr/-6.0.2//bin/scilab" instead of "/usr/share/scilab-6.0.2/bin/scilab"
more informations in mailing list :
https://www.mail-archive.com/users@lists.scilab.org/msg08759.html
version informations :
Version de Scilab : 6.0.1.1550134035 <=supposed to be scilab-6.0.2!
Système d'exploitation : Linux 4.15.0-1045-oem
Version Java : 1.8.0_151
Informations sur l'environnement d'exécution Java : Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Informations sur la machine virtuelle Java : Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
Spécifications du fabricant : Oracle Corporation
Edited by Vincent COUVERT