diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-26 00:29:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-14 17:27:42 +0200 |
| commit | bd806060787e0d6d3433122040810622e3b677b7 (patch) | |
| tree | 0bfc5a718f8b9176eaf94d7859fe9df7a00d4ad2 | |
| parent | cdf3e79adcb4446390c5b5543198e2c7c1b16f32 (diff) | |
Add new OK type of verification note.
| -rw-r--r-- | src/verify.h | 3 | ||||
| -rw-r--r-- | test/stream_operators.cc | 3 | ||||
| -rw-r--r-- | tools/dcpverify.cc | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/verify.h b/src/verify.h index 4ca3297a..88b4d0b9 100644 --- a/src/verify.h +++ b/src/verify.h @@ -62,12 +62,13 @@ class VerificationNote { public: enum class Type { + OK, ERROR, BV21_ERROR, ///< may not always be considered an error, but violates a "shall" requirement of Bv2.1 WARNING }; - /** Codes for errors or warnings from verifying DCPs. + /** Codes for successful checks, errors or warnings from verifying DCPs. * * The names should (in general) answer the question "what is wrong?" with an answer that begins "There is a ..." * e.g. "There is a INCORRECT_CPL_HASH" diff --git a/test/stream_operators.cc b/test/stream_operators.cc index 87949e84..4895076a 100644 --- a/test/stream_operators.cc +++ b/test/stream_operators.cc @@ -208,6 +208,9 @@ ostream& dcp::operator<< (ostream& s, VerificationNote::Type t) { switch (t) { + case VerificationNote::Type::OK: + s << "check"; + break; case VerificationNote::Type::ERROR: s << "error"; break; diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc index 0ef256eb..ebc02874 100644 --- a/tools/dcpverify.cc +++ b/tools/dcpverify.cc @@ -188,6 +188,8 @@ main (int argc, char* argv[]) continue; } switch (i.type()) { + case dcp::VerificationNote::Type::OK: + break; case dcp::VerificationNote::Type::ERROR: cout << "Error: " << note_to_string(i) << "\n"; failed = true; |
