diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-20 12:28:04 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-21 00:52:07 +0200 |
| commit | 7021315442ab706ff497d574edb19831028ec8bd (patch) | |
| tree | c918e522bf1b06caaf483b000da03d771d0d2f1e /test/hints_test.cc | |
| parent | c370c651eba466f5073384de8b304a2625c64b89 (diff) | |
Add a possibly-useful test.
Diffstat (limited to 'test/hints_test.cc')
| -rw-r--r-- | test/hints_test.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/hints_test.cc b/test/hints_test.cc index f929da9c4..16d130f22 100644 --- a/test/hints_test.cc +++ b/test/hints_test.cc @@ -222,3 +222,18 @@ BOOST_AUTO_TEST_CASE (hint_closed_caption_xml_too_big) ); } + +BOOST_AUTO_TEST_CASE (hints_destroyed_while_running) +{ + auto film = new_test_film2 ("hints_destroyed_while_running"); + auto content = content_factory(TestPaths::private_data() / "boon_telly.mkv").front(); + film->examine_and_add_content (content); + BOOST_REQUIRE (!wait_for_jobs()); + + auto hints = make_shared<Hints>(film); + hints->start (); + dcpomatic_sleep_seconds (1); + hints.reset (); + dcpomatic_sleep_seconds (1); +} + |
