summaryrefslogtreecommitdiff
path: root/test/unit/t_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-25 05:40:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-25 05:40:26 -0400
commit05529b2c6817f899ff8d97685ffed82e52e0ec6b (patch)
treec8cdb06b6dd325bb0f98109d0d0a79b5a3bf9a13 /test/unit/t_amount.cc
parentf25a32c92c90a65b4ec341ad703c8e61f615d48e (diff)
downloadfork-ledger-05529b2c6817f899ff8d97685ffed82e52e0ec6b.tar.gz
fork-ledger-05529b2c6817f899ff8d97685ffed82e52e0ec6b.tar.bz2
fork-ledger-05529b2c6817f899ff8d97685ffed82e52e0ec6b.zip
Call times_initialize/shutdown in the unit tests
Diffstat (limited to 'test/unit/t_amount.cc')
-rw-r--r--test/unit/t_amount.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/t_amount.cc b/test/unit/t_amount.cc
index ba863ca7..c2a6b8c9 100644
--- a/test/unit/t_amount.cc
+++ b/test/unit/t_amount.cc
@@ -11,6 +11,7 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(AmountTestCase, "math");
void AmountTestCase::setUp()
{
+ times_initialize();
amount_t::initialize();
// Cause the display precision for dollars to be initialized to 2.
@@ -24,6 +25,7 @@ void AmountTestCase::tearDown()
{
amount_t::stream_fullstrings = false;
amount_t::shutdown();
+ times_shutdown();
}
void AmountTestCase::testParser()