diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-07-26 17:00:37 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | fa811656a2bd39bcabfc7f52270f1f5d655e0537 (patch) | |
tree | a6f99d16a712d3bfa0e0b4b7013daf8404720a5a /framework/Framework.h | |
parent | 542002cf3d9acc2858e2311966cd9b060d70b5a6 (diff) | |
download | ComputeLibrary-fa811656a2bd39bcabfc7f52270f1f5d655e0537.tar.gz |
COMPMID-415: Add --stop-on-error
Change-Id: I557934e8f065d8877344c945980b33139c2a5c97
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/81831
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'framework/Framework.h')
-rw-r--r-- | framework/Framework.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/framework/Framework.h b/framework/Framework.h index 0929b4ab20..671e4e435f 100644 --- a/framework/Framework.h +++ b/framework/Framework.h @@ -213,6 +213,18 @@ public: */ void set_throw_errors(bool throw_errors); + /** Indicates if test execution is stopped after the first failed test. + * + * @return True if the execution is going to be aborted after the first failed test. + */ + bool stop_on_error() const; + + /** Set whether to abort execution after the first failed test. + * + * @param[in] stop_on_error True if execution is going to be aborted after first failed test. + */ + void set_stop_on_error(bool stop_on_error); + /** Check if a test case is selected to be executed. * * @param[in] info Test case info. @@ -289,6 +301,7 @@ private: std::map<TestInfo, TestResult> _test_results{}; int _num_iterations{ 1 }; bool _throw_errors{ false }; + bool _stop_on_error{ false }; Printer *_printer{ nullptr }; using create_function = std::unique_ptr<Instrument>(); |