mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:09:20 +02:00
* fix regressions after previous patch by correctly parsing output, which does not contain '##WASI-EXITCODE:'
This commit is contained in:
parent
a8b789d183
commit
0f4340e659
@ -1042,13 +1042,16 @@ begin
|
|||||||
if is_wasi then
|
if is_wasi then
|
||||||
begin
|
begin
|
||||||
i:=pos('##WASI-EXITCODE: ',s);
|
i:=pos('##WASI-EXITCODE: ',s);
|
||||||
delete(s,1,i+17-1);
|
if i>0 then
|
||||||
val(s,ExecuteResult,code);
|
begin
|
||||||
if code>1 then
|
delete(s,1,i+17-1);
|
||||||
val(copy(s,1,code-1),ExecuteResult,code);
|
val(s,ExecuteResult,code);
|
||||||
if code=0 then
|
if code>1 then
|
||||||
CheckTestExitCode:=true;
|
val(copy(s,1,code-1),ExecuteResult,code);
|
||||||
break;
|
if code=0 then
|
||||||
|
CheckTestExitCode:=true;
|
||||||
|
break;
|
||||||
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user