<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 06/08/2019 à 15:03, philippe a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:qibtrc$789l$1@blaine.gmane.org">.../...<br>
I've just done this an get :
<br>
<br>
<br>
-> test_run("ast",[],"no_check_ref")
<br>
TMPDIR = /tmp/SCI_TMP_32597_VRKa5r
<br>
<br>
Module 001/001 - [ast] :
<br>
<br>
001/154 - [ast] Sand.........................................
<br>
( /usr/-6.0.2//bin/scilab -nwni -nb -quit --timeout 15m -f
/tmp/SCI_TMP_32597_VRKa5r/Sand.tst > /tmp/SCI_TMP_32
<br>
597_VRKa5r/Sand.res ) 2> /tmp/SCI_TMP_32597_VRKa5r/Sand.er
<br>
<br>
<br>
the command line "/usr/-6.0.2//bin/scilab" should be instead :
<br>
/usr/share/scilab-6.0.2/bin/scilab
<br>
<br>
the problem seems to come from line 811
<br>
<br>
if (getos() <> "Windows") & ~isfile(SCI+"/bin/scilab")
then
<br>
SCI_BIN = strsubst(SCI,"share/scilab","");//<---line
811
<br>
else
<br>
SCI_BIN = SCI;
<br>
end
<br>
<br>
there is two occurrences of "share/scilab" in the path so the
substitution is not valid :
<br>
<br>
<br>
--> SCI
<br>
SCI =
<br>
<br>
/usr/share/scilab-6.0.2/share/scilab
<br>
</blockquote>
<p><br>
</p>
<p>If this path specific to your installation? I mean, some other
Linux or oMacOS users run tests without this issue.<br>
Anyway, this has to be fixed.<br>
<br>
</p>
<blockquote type="cite" cite="mid:qibtrc$789l$1@blaine.gmane.org">
<br>
the line 811 should be replaced with something like :
<br>
<br>
SCI_path=strsplit(SCI,'/');SCI_BIN = strcat(SCI_path(1:$-2),'/');
<br>
<br>
but this modification freeze scilab when launching test_run
although running "/usr/share/scilab-6.0.2/bin/scilab -nwni -nb
-quit --timeout 15m -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst" from
a terminal is ok ...?
<br>
</blockquote>
<p>Have you checked that this is <b>actually</b> the run command,
with the same disp spy instruction?<br>
If yes, then there may be 2 another bug after the first one.<br>
</p>
<p><br>
</p>
<blockquote type="cite" cite="mid:qibtrc$789l$1@blaine.gmane.org">
<br>
Thanks a lot Samuel for the help, do you want me to add a bug
report ?
<br>
</blockquote>
<p><br>
</p>
<p>Yes please. It will need your contribution to test and valid the
solution.<br>
It will be hard (and heavy) to get a specific scilab installation
to test the patch.</p>
<br>
Samuel<br>
<br>
</body>
</html>