mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 22:30:34 +02:00
* remove compileerror10, note10
* remove known, use knowncompileerror,knownrunerror instead * knowncompileerror,knownrunerror tests are now really skipped
This commit is contained in:
parent
cbd049d506
commit
4970875d90
@ -444,19 +444,6 @@ begin
|
||||
Copyfile(OutName,LongLogFile,true);
|
||||
Verbose(V_Abort,known_problem+'exitcode: '+ToStr(ExecuteResult));
|
||||
end
|
||||
else if (ExecuteResult<>0) and
|
||||
GetCompilerVersion and (Pos('1.0',CompilerVersion)=1) and
|
||||
(((Config.KnownCompile10Note<>'') and (Config.KnownCompile10Error=0)) or
|
||||
((Config.KnownCompile10Error<>0) and (ExecuteResult=Config.KnownCompile10Error))) then
|
||||
begin
|
||||
AddLog(FailLogFile,TestName+known_problem+Config.KnownCompile10Note);
|
||||
AddLog(ResLogFile,failed_to_run+PPFileInfo+known_problem+Config.KnownCompile10Note);
|
||||
AddLog(LongLogFile,line_separation);
|
||||
AddLog(LongLogFile,known_problem+Config.KnownCompile10Note);
|
||||
AddLog(LongLogFile,failed_to_compile+PPFileInfo+' ('+ToStr(ExecuteResult)+')');
|
||||
Copyfile(OutName,LongLogFile,true);
|
||||
Verbose(V_Abort,known_problem+'exitcode: '+ToStr(ExecuteResult));
|
||||
end
|
||||
else if ExecuteResult<>0 then
|
||||
begin
|
||||
AddLog(FailLogFile,TestName);
|
||||
@ -640,7 +627,7 @@ begin
|
||||
|
||||
if Res then
|
||||
begin
|
||||
if Config.IsKnown and (not DoKnown) then
|
||||
if Config.IsKnownCompileError and (not DoKnown) then
|
||||
begin
|
||||
{ avoid a second attempt by writing to elg file }
|
||||
AddLog(OutName,skipping_known_bug+PPFileInfo);
|
||||
@ -652,7 +639,7 @@ begin
|
||||
|
||||
if Res and not DoUsual then
|
||||
res:=(Config.IsInteractive and DoInteractive) or
|
||||
(Config.IsKnown and DoKnown) or
|
||||
(Config.IsKnownRunError and DoKnown) or
|
||||
(Config.UsesGraph and DoGraph);
|
||||
|
||||
if Res then
|
||||
@ -773,6 +760,13 @@ begin
|
||||
AddLog(ResLogFile,skipping_run_test+PPFileInfo);
|
||||
Verbose(V_Debug,skipping_run_test);
|
||||
end
|
||||
else if Config.IsKnownRunError and (not DoKnown) then
|
||||
begin
|
||||
{ avoid a second attempt by writing to elg file }
|
||||
AddLog(OutName,skipping_known_bug+PPFileInfo);
|
||||
AddLog(ResLogFile,skipping_known_bug+PPFileInfo);
|
||||
Verbose(V_Abort,skipping_known_bug);
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (not Config.ShouldFail) and DoExecute then
|
||||
@ -799,7 +793,12 @@ begin
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.28 2003-10-13 14:19:02 peter
|
||||
Revision 1.29 2003-10-31 16:14:20 peter
|
||||
* remove compileerror10, note10
|
||||
* remove known, use knowncompileerror,knownrunerror instead
|
||||
* knowncompileerror,knownrunerror tests are now really skipped
|
||||
|
||||
Revision 1.28 2003/10/13 14:19:02 peter
|
||||
* digest updated for max version limit
|
||||
|
||||
Revision 1.27 2003/06/13 08:16:34 pierre
|
||||
|
@ -21,16 +21,15 @@ type
|
||||
MinVersion,
|
||||
MaxVersion,
|
||||
KnownRunNote,
|
||||
KnownCompileNote,
|
||||
KnownCompile10Note : string;
|
||||
KnownCompileNote : string;
|
||||
ResultCode : longint;
|
||||
KnownRunError : longint;
|
||||
KnownCompileError,
|
||||
KnownCompile10Error : longint;
|
||||
KnownCompileError : longint;
|
||||
NeedRecompile : boolean;
|
||||
NeedLibrary : boolean;
|
||||
IsInteractive : boolean;
|
||||
IsKnown : boolean;
|
||||
IsKnownRunError,
|
||||
IsKnownCompileError : boolean;
|
||||
NoRun : boolean;
|
||||
UsesGraph : boolean;
|
||||
ShouldFail : boolean;
|
||||
@ -206,6 +205,7 @@ begin
|
||||
else
|
||||
if GetEntry('KNOWNRUNERROR') then
|
||||
begin
|
||||
r.IsKnownRunError:=true;
|
||||
if res<>'' then
|
||||
begin
|
||||
val(res,l,code);
|
||||
@ -224,6 +224,7 @@ begin
|
||||
else
|
||||
if GetEntry('KNOWNCOMPILEERROR') then
|
||||
begin
|
||||
r.IsKnownCompileError:=true;
|
||||
if res<>'' then
|
||||
begin
|
||||
val(res,l,code);
|
||||
@ -239,27 +240,6 @@ begin
|
||||
r.KnownCompileNote:=res;
|
||||
end;
|
||||
end
|
||||
else
|
||||
if GetEntry('KNOWNCOMPILE10ERROR') then
|
||||
begin
|
||||
if res<>'' then
|
||||
begin
|
||||
val(res,l,code);
|
||||
if code>1 then
|
||||
begin
|
||||
part:=code;
|
||||
val(copy(res,1,code-1),l,code);
|
||||
delete(res,1,part);
|
||||
end;
|
||||
if code=0 then
|
||||
r.KnownCompile10Error:=l;
|
||||
if res<>'' then
|
||||
r.KnownCompile10Note:=res;
|
||||
end;
|
||||
end
|
||||
else
|
||||
if GetEntry('KNOWN') then
|
||||
r.IsKnown:=true
|
||||
else
|
||||
if GetEntry('INTERACTIVE') then
|
||||
r.IsInteractive:=true
|
||||
|
Loading…
Reference in New Issue
Block a user