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

Unified Diff: runtime/platform/assert.cc

Issue 323703002: Flush stderr when printing ASSERT message. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/assert.cc
diff --git a/runtime/platform/assert.cc b/runtime/platform/assert.cc
index cb7d21a09023182716af661edce3aebf78a73d12..5410046a9e515e48c923bbaf3069ad2e1e63107b 100644
--- a/runtime/platform/assert.cc
+++ b/runtime/platform/assert.cc
@@ -30,6 +30,7 @@ void DynamicAssertionHelper::Fail(const char* format, ...) {
// Get the message from the string stream and dump it on stderr.
std::string message = stream.str();
fprintf(stderr, "%s", message.c_str());
+ fflush(stderr);
// In case of failed assertions, abort right away. Otherwise, wait
// until the program is exiting before producing a non-zero exit
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698