mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-12 12:00:33 +01:00
fpcunit: consoletestrunner returns exitcode 1, if there are errors or failures.
git-svn-id: trunk@10567 -
This commit is contained in:
parent
ea88e8a24f
commit
fece699695
@ -160,7 +160,6 @@ var
|
|||||||
WriteXMLFile(XMLResultsWriter.Document, output);
|
WriteXMLFile(XMLResultsWriter.Document, output);
|
||||||
finally
|
finally
|
||||||
XMLResultsWriter.Free;
|
XMLResultsWriter.Free;
|
||||||
testResult.Free;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -177,7 +176,6 @@ var
|
|||||||
PlainResultsWriter.WriteResult(testResult);
|
PlainResultsWriter.WriteResult(testResult);
|
||||||
finally
|
finally
|
||||||
PlainResultsWriter.Free;
|
PlainResultsWriter.Free;
|
||||||
testResult.Free;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -197,9 +195,12 @@ begin
|
|||||||
else
|
else
|
||||||
doXMLTestRun(aTest);
|
doXMLTestRun(aTest);
|
||||||
end;
|
end;
|
||||||
|
if testResult.NumberOfErrors+testResult.NumberOfFailures>0 then
|
||||||
|
ExitCode := 1;
|
||||||
finally
|
finally
|
||||||
if ShowProgress then
|
if ShowProgress then
|
||||||
progressWriter.Free;
|
progressWriter.Free;
|
||||||
|
testResult.Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ unit BugTestCase;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Math, process, fileutil, fpcunit, testutils, testregistry,
|
Classes, SysUtils, Math, process, fileutil, fpcunit, testregistry,
|
||||||
TestGlobals;
|
TestGlobals;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user