Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testframework for FPC doesn't exit with failure code #161

Open
SlMaker opened this issue May 22, 2020 · 4 comments
Open

Testframework for FPC doesn't exit with failure code #161

SlMaker opened this issue May 22, 2020 · 4 comments

Comments

@SlMaker
Copy link
Contributor

SlMaker commented May 22, 2020

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?

@masterandrey
Copy link

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

@SlMaker
Copy link
Contributor Author

SlMaker commented May 23, 2020

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

@Alexey-T
Copy link
Collaborator

Alexey-T commented May 3, 2022

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

@AmigoJack
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants