aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbbot/manifest.cxx26
-rw-r--r--libbbot/manifest.hxx3
2 files changed, 16 insertions, 13 deletions
diff --git a/libbbot/manifest.cxx b/libbbot/manifest.cxx
index e2534c2..7412e74 100644
--- a/libbbot/manifest.cxx
+++ b/libbbot/manifest.cxx
@@ -43,12 +43,13 @@ namespace bbot
{
switch (s)
{
- case result_status::skip: return "skip";
- case result_status::success: return "success";
- case result_status::warning: return "warning";
- case result_status::error: return "error";
- case result_status::abort: return "abort";
- case result_status::abnormal: return "abnormal";
+ case result_status::skip: return "skip";
+ case result_status::success: return "success";
+ case result_status::warning: return "warning";
+ case result_status::error: return "error";
+ case result_status::abort: return "abort";
+ case result_status::abnormal: return "abnormal";
+ case result_status::interrupt: return "interrupt";
}
assert (false);
@@ -58,12 +59,13 @@ namespace bbot
result_status
to_result_status (const string& s)
{
- if (s == "skip") return result_status::skip;
- else if (s == "success") return result_status::success;
- else if (s == "warning") return result_status::warning;
- else if (s == "error") return result_status::error;
- else if (s == "abort") return result_status::abort;
- else if (s == "abnormal") return result_status::abnormal;
+ if (s == "skip") return result_status::skip;
+ else if (s == "success") return result_status::success;
+ else if (s == "warning") return result_status::warning;
+ else if (s == "error") return result_status::error;
+ else if (s == "abort") return result_status::abort;
+ else if (s == "abnormal") return result_status::abnormal;
+ else if (s == "interrupt") return result_status::interrupt;
else throw invalid_argument ("invalid result status '" + s + '\'');
}
diff --git a/libbbot/manifest.hxx b/libbbot/manifest.hxx
index 13b1138..d51d95b 100644
--- a/libbbot/manifest.hxx
+++ b/libbbot/manifest.hxx
@@ -309,7 +309,8 @@ namespace bbot
warning,
error,
abort,
- abnormal
+ abnormal,
+ interrupt
};
LIBBBOT_EXPORT std::string