summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-12-06 22:14:58 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-22 01:21:00 +0100
commit9a929751dc55e584c58643e55bf499dc5f5d54b8 (patch)
treeaa3e78f03d9fc211fa3c9ca99f3a1b0eb144f299
parentde0705f56a4ca00917d6f9967d3754f6fe85e566 (diff)
Add a debug method for when there are unexpected notes.
-rw-r--r--test/verify_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/verify_test.cc b/test/verify_test.cc
index 026c2726..ba6d6b22 100644
--- a/test/verify_test.cc
+++ b/test/verify_test.cc
@@ -103,6 +103,15 @@ private:
std::string _content;
};
+static
+void
+dump_notes (list<dcp::VerificationNote> const & notes)
+{
+ BOOST_FOREACH (dcp::VerificationNote i, notes) {
+ std::cout << dcp::note_to_string(i) << "\n";
+ }
+}
+
/* Check DCP as-is (should be OK) */
BOOST_AUTO_TEST_CASE (verify_test1)
{
@@ -133,6 +142,8 @@ BOOST_AUTO_TEST_CASE (verify_test1)
++st;
BOOST_REQUIRE (st == stages.end());
+ dump_notes (notes);
+
BOOST_CHECK_EQUAL (notes.size(), 0);
}