From 9a929751dc55e584c58643e55bf499dc5f5d54b8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 6 Dec 2019 22:14:58 +0100 Subject: Add a debug method for when there are unexpected notes. --- test/verify_test.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 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); } -- cgit v1.2.3