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

Unified Diff: base/process_util_unittest.cc

Issue 10833055: roll clang 159409:160702 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux Created 8 years, 5 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 | gpu/tools/compositor_model_bench/compositor_model_bench.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_unittest.cc
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc
index 3925d0adb5ffbfdcb67fb7349eee8a57f89d6145..3368d5e3acdb484720fd3662c24893a76113ebcb 100644
--- a/base/process_util_unittest.cc
+++ b/base/process_util_unittest.cc
@@ -504,6 +504,7 @@ TEST_F(ProcessUtilTest, MacMallocFailureDoesNotTerminate) {
TEST_F(ProcessUtilTest, MacTerminateOnHeapCorruption) {
// Assert that freeing an unallocated pointer will crash the process.
char buf[3];
+ asm("" : "=r" (buf)); // Prevent clang from being too smart.
Mark Mentovai 2012/07/28 02:09:25 OK
#if !defined(ADDRESS_SANITIZER)
ASSERT_DEATH(free(buf), "being freed.*"
"\\*\\*\\* set a breakpoint in malloc_error_break to debug.*"
« no previous file with comments | « no previous file | gpu/tools/compositor_model_bench/compositor_model_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698