Skip to content

Don't Print Backtrace When Unit Tests Failed #485

@Carltoffel

Description

@Carltoffel

If one test in the testing framework called by fpm test fails, the framework will likely return an exit code >0. This leads to fpm calling error stop which causes printing the backtrace in the console (at least if fpm was compiled with gfortran). This can cause some confusion, because the program did exactly what it was meant to do, but the backtrace implies something went unexpectedly wrong.

@everythingfunctional and I discussed the same behaviour in his vegetables project where he ended up with replacing error stop with stop 1. Brad tested some combinations of compiler and OS and it sounds promising as long as there aren't multiply images.

What do you think? Does the same approach applies for fpm or is there even a better way?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions