summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/verify.h3
-rw-r--r--test/stream_operators.cc3
-rw-r--r--tools/dcpverify.cc2
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;