From f6705ec6ed137233680929e941c674af6baae1dc Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Thu, 28 Sep 2017 12:01:10 +0100 Subject: COMPMID-417 Allow the tests to run even when assets are not present Change-Id: Ief165b1d583a70cbe35aae93f05ddfe962196323 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89503 Reviewed-by: Georgios Pinitas Tested-by: Kaizen --- tests/framework/Exceptions.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/framework/Exceptions.h') diff --git a/tests/framework/Exceptions.h b/tests/framework/Exceptions.h index edb0ed92c9..f35c35020c 100644 --- a/tests/framework/Exceptions.h +++ b/tests/framework/Exceptions.h @@ -63,6 +63,17 @@ LogLevel log_level_from_name(const std::string &name); ::std::ostream &operator<<(::std::ostream &stream, LogLevel level); std::string to_string(LogLevel level); +/** Error class for when some external assets are missing */ +class FileNotFound : public std::runtime_error +{ +public: + /** Construct error with message + * + * @param[in] msg Error message + */ + FileNotFound(const std::string &msg); +}; + /** Error class for failures during test execution. */ class TestError : public std::runtime_error { -- cgit v1.2.1