mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 02:29:52 +02:00
* Do not assume '.' is in path for Unix
git-svn-id: trunk@14217 -
This commit is contained in:
parent
c83ee377c1
commit
08350fcc9a
@ -39,6 +39,13 @@ uses
|
|||||||
dos;
|
dos;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
Prefix =
|
||||||
|
{$ifdef Unix}
|
||||||
|
'./'
|
||||||
|
{$else}
|
||||||
|
''
|
||||||
|
{$endif}
|
||||||
|
;
|
||||||
ExeSuffix =
|
ExeSuffix =
|
||||||
{$ifdef HasExeSuffix}
|
{$ifdef HasExeSuffix}
|
||||||
'.exe'
|
'.exe'
|
||||||
@ -60,7 +67,7 @@ var
|
|||||||
const
|
const
|
||||||
Everything_ok : boolean = true;
|
Everything_ok : boolean = true;
|
||||||
begin
|
begin
|
||||||
cmd:='targ1a'+ExeSuffix;
|
cmd:=Prefix+'targ1a'+ExeSuffix;
|
||||||
arg:='';
|
arg:='';
|
||||||
first_wrong:=-1;
|
first_wrong:=-1;
|
||||||
for i:=0 to MAX do
|
for i:=0 to MAX do
|
||||||
@ -70,7 +77,8 @@ begin
|
|||||||
Exec(cmd,arg);
|
Exec(cmd,arg);
|
||||||
if (DosExitCode<>0) or (DosError<>0) then
|
if (DosExitCode<>0) or (DosError<>0) then
|
||||||
begin
|
begin
|
||||||
Writeln(stderr,'Crash detected');
|
Writeln(stderr,'Crash detected, DosError=', DosError);
|
||||||
|
Writeln(stderr,'DosExitCode=',DosExitCode);
|
||||||
if first_wrong=-1 then
|
if first_wrong=-1 then
|
||||||
first_wrong:=i;
|
first_wrong:=i;
|
||||||
Everything_ok := false;
|
Everything_ok := false;
|
||||||
|
Loading…
Reference in New Issue
Block a user