Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Unified Diff: runtime/platform/assert.h

Issue 2311283002: Fixes run_vm_tests Windows shutdown problem (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/platform/assert.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.h
diff --git a/runtime/platform/assert.h b/runtime/platform/assert.h
index 9d6d67c0a4a402aa58bcbf761ca652931c6b4638..0e8969c7eb835219468d4828c825a1f8a87c70b0 100644
--- a/runtime/platform/assert.h
+++ b/runtime/platform/assert.h
@@ -35,6 +35,8 @@ class DynamicAssertionHelper {
void Fail(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
+ static bool failed() { return failed_; }
+
#if defined(TESTING)
template<typename E, typename A>
void Equals(const E& expected, const A& actual);
@@ -71,6 +73,8 @@ class DynamicAssertionHelper {
T NotNull(const T p);
private:
+ static bool failed_;
+
const char* const file_;
const int line_;
const Kind kind_;
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/platform/assert.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698