Adjust num_of_steps_expected for Apple ARM architecture

This commit is contained in:
Matt Borland 2023-12-15 12:18:09 +01:00
parent 68950d8df2
commit afe5834aa8
No known key found for this signature in database
GPG Key ID: 30EFCE23CA65A72C

View File

@ -68,5 +68,11 @@ BOOST_AUTO_TEST_CASE( regression_189 )
stiff_system() , x2 , 0.0 , 50.0 , 0.01 ,
std::cout << phoenix::arg_names::arg2 << " " << phoenix::arg_names::arg1[0] << "\n" );
num_of_steps_expected = 1531;
// Apple ARM arch takes one additional step
#if defined(__aarch64__) && defined(__APPLE__)
++num_of_steps_expected;
#endif
BOOST_CHECK_EQUAL( num_of_steps2 , num_of_steps_expected );
}