projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c370c65
)
Add a possibly-useful test.
author
Carl Hetherington
<cth@carlh.net>
Tue, 20 Apr 2021 10:28:04 +0000
(12:28 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 20 Apr 2021 22:52:07 +0000
(
00:52
+0200)
test/hints_test.cc
patch
|
blob
|
history
diff --git
a/test/hints_test.cc
b/test/hints_test.cc
index f929da9c46f993f64b1596c27ad1493a6de376cf..16d130f22a65c04232b3c4cda000c4cb9d83967c 100644
(file)
--- 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);
+}
+