We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54569a commit 5d72ffdCopy full SHA for 5d72ffd
openvdb/openvdb/unittest/main.cc
@@ -24,7 +24,12 @@ main(int argc, char *argv[])
24
::testing::InitGoogleTest(&argc, argv);
25
26
#if defined(__linux__) && defined(OPENVDB_TESTS_FPE)
27
- feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
+ int excepts = FE_DIVBYZERO | FE_INVALID;
28
+ if (getenv("OPENVDB_TEST_OVERFLOW")) {
29
+ // when set, test for FP overflow as well.
30
+ excepts = excepts | FE_OVERFLOW;
31
+ }
32
+ feenableexcept(excepts);
33
#endif
34
35
return RUN_ALL_TESTS();
0 commit comments