TRegExpr icon indicating copy to clipboard operation
TRegExpr copied to clipboard

Testframework for FPC doesn't exit with failure code

Open SlMaker opened this issue 4 years ago • 4 comments

The FPC framework doesn't return the failure code (if error then exit code != 0) which always shows that the tests passed on Travis-CI.

Maybe use dunit/dunit2 for FPC instead?

SlMaker avatar May 22 '20 19:05 SlMaker

+1 The test code actually from fpc project - I backported the tregexpr integration from freepascal scn. But obviously I broke something..

masterandrey avatar May 23 '20 14:05 masterandrey

Maybe better use https://wiki.freepascal.org/FPTest src available on github https://github.com/graemeg/fptest so could be added to repo as reference

SlMaker avatar May 23 '20 15:05 SlMaker

I dont get idea what is requested here. Maybe close the issue? @andgineer

Alexey-T avatar May 03 '22 13:05 Alexey-T

The idea is that the test program should not exit with the value 0 when at least one assertion has failed. https://en.wikipedia.org/wiki/Exit_status speaks of what ExitCode in Pascal means - by default it is 0, indicating no failure.

AmigoJack avatar Sep 20 '23 15:09 AmigoJack