Skip to content

Commit

Permalink
Updated the tests for compatibility with macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
eg0000r-pub committed Feb 15, 2024
1 parent 68a9fb8 commit c1665ec
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/alt_sintered.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down
4 changes: 4 additions & 0 deletions test/contact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down
4 changes: 4 additions & 0 deletions test/hamaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down
4 changes: 4 additions & 0 deletions test/hamaker_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down
4 changes: 4 additions & 0 deletions test/hamaker_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down
4 changes: 4 additions & 0 deletions test/sintered.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down
4 changes: 4 additions & 0 deletions test/sintered_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#define enable_fp_exceptions() feenableexcept(FE_INVALID | FE_OVERFLOW | FE_DIVBYZERO)
#elif defined(_MSC_VER)
#define enable_fp_exceptions()
#elif defined(__APPLE__)
#define enable_fp_exceptions()
#else
#error "Unsupported system"
#endif

#include <Eigen/Eigen>
Expand Down

0 comments on commit c1665ec

Please sign in to comment.