From: <ste...@us...> - 2014-05-18 01:03:28
|
Revision: 6602 http://sourceforge.net/p/moneymanagerex/code/6602 Author: stef145g Date: 2014-05-18 01:03:25 +0000 (Sun, 18 May 2014) Log Message: ----------- Fix: Prevent test crash, by not destroying cache before all sub-tests completed. Modified Paths: -------------- trunk/tests/test_callback_hooks.cpp Modified: trunk/tests/test_callback_hooks.cpp =================================================================== --- trunk/tests/test_callback_hooks.cpp 2014-05-17 13:44:52 UTC (rev 6601) +++ trunk/tests/test_callback_hooks.cpp 2014-05-18 01:03:25 UTC (rev 6602) @@ -83,7 +83,7 @@ void Test_Callback_Hooks::test_Init_Base_Currency() { Model_Infotable::instance(&m_test_db); - Model_Currency currency = Model_Currency::instance(&m_test_db); + Model_Currency& currency = Model_Currency::instance(&m_test_db); Model_Currency::Data* au_record = currency.GetCurrencyRecord("AUD"); int precision = currency.precision(au_record); This was sent by MMEX an easy to use, money management application. |