diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-20 00:35:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 00:45:40 +0200 |
| commit | 78ca79cde19db630b1abfe8f00f49e87bb7e4068 (patch) | |
| tree | 162e17e2413e57e10cf841212c5d29b9ff97b400 /test/ratio_test.cc | |
| parent | f25061b8a6f35e490b731caefe63560045b10a1f (diff) | |
Fix a load of stuff that wasn't being freed on close.
Nothing really that important, but it cleans up the valgrind
leak check reports.
Diffstat (limited to 'test/ratio_test.cc')
| -rw-r--r-- | test/ratio_test.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/ratio_test.cc b/test/ratio_test.cc index 1e8d54333..a21859049 100644 --- a/test/ratio_test.cc +++ b/test/ratio_test.cc @@ -34,8 +34,6 @@ using std::ostream; BOOST_AUTO_TEST_CASE (ratio_test) { - Ratio::setup_ratios (); - Ratio const * r = Ratio::from_id ("119"); BOOST_CHECK (r); BOOST_CHECK_EQUAL (fit_ratio_within (r->ratio(), dcp::Size (2048, 1080)), dcp::Size (1290, 1080)); @@ -68,3 +66,10 @@ BOOST_AUTO_TEST_CASE (ratio_test) BOOST_CHECK (r); BOOST_CHECK_EQUAL (fit_ratio_within (r->ratio(), dcp::Size (2048, 1080)), dcp::Size (2048, 1080)); } + + +BOOST_AUTO_TEST_CASE (ratios_use_same_pointers_test) +{ + auto const test = Ratio::from_id ("119"); + BOOST_CHECK_EQUAL (test, Ratio::from_id("119")); +} |
