Invalidate the test runner, preventing it from executing any further.
| 97 | |
| 98 | // Invalidate the test runner, preventing it from executing any further. |
| 99 | void Invalidate(const string& error_message) { |
| 100 | std::cerr << error_message << std::endl; |
| 101 | error_message_ = error_message; |
| 102 | } |
| 103 | bool IsValid() const { return error_message_.empty(); } |
| 104 | const string& GetErrorMessage() const { return error_message_; } |
| 105 |