You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I noticed that the regression testsuite was hardcoded to use the debug build, and I would like to test the optimized release builds instead. I thus modified the suite to run with the release binaries, which was easy enough to do.
Unfortunately, when run with release binaries, some of the tests failed, and more tests failed with more optimizations turned on.
For O0, none of the common tests failed
For O3, two from common failed: bigdecimal_3.test bigdecimal_4.test
For the core test, the behaviour is similar:
For O0, two fail: NED_paramcrossref_5.test signals_static_registration_1.test
For O3, six fail: NED_paramcrossref_5.test SimTime_ctor_1.test SimTime_div_1.test SimTime_preciseDiv_2.test c++-doubletolongconversion.test signals_static_registration_1.test
Adding -DNDEBUG=1 to the CFLAGS increases the number of failing test as well.
The expected and actual output for bigdecimal_3.test:
Platform:
Description:
I noticed that the regression testsuite was hardcoded to use the debug build, and I would like to test the optimized release builds instead. I thus modified the suite to run with the release binaries, which was easy enough to do.
Unfortunately, when run with release binaries, some of the tests failed, and more tests failed with more optimizations turned on.
For
O0
, none of thecommon
tests failedFor
O3
, two fromcommon
failed:bigdecimal_3.test bigdecimal_4.test
For the
core
test, the behaviour is similar:For
O0
, two fail:NED_paramcrossref_5.test signals_static_registration_1.test
For
O3
, six fail:NED_paramcrossref_5.test SimTime_ctor_1.test SimTime_div_1.test SimTime_preciseDiv_2.test c++-doubletolongconversion.test signals_static_registration_1.test
Adding
-DNDEBUG=1
to the CFLAGS increases the number of failing test as well.The expected and actual output for
bigdecimal_3.test
:for
SimTime_ctor_1
:Steps To Reproduce:
test/{common,core}
, in eachruntest
change theMODE=debug
toMODE=release
and eachwork_dbg
towork
to run in release modeThe text was updated successfully, but these errors were encountered: