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

Trap floating-point exceptions in tests #330

Open
tarun-mitruka opened this issue Sep 30, 2024 · 0 comments
Open

Trap floating-point exceptions in tests #330

tarun-mitruka opened this issue Sep 30, 2024 · 0 comments
Labels
enhancement New request to enhance existing features feature New feature test adds / reworks tests

Comments

@tarun-mitruka
Copy link
Collaborator

Using the header cfenv, floating-point exceptions can be trapped, for instance via

#include <cfenv>
feenableexcept(FE_ALL_EXCEPT & ~FE_INEXACT);

Explore all such options and include it in every test.. to avoid, example, division-by-zero, nans, infs, etc..

@tarun-mitruka tarun-mitruka added enhancement New request to enhance existing features feature New feature test adds / reworks tests labels Sep 30, 2024
tarun-mitruka added a commit that referenced this issue Sep 30, 2024
to be included along with #330
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New request to enhance existing features feature New feature test adds / reworks tests
Projects
None yet
Development

No branches or pull requests

1 participant