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

Side by Side Diff: base/process_util_unittest.cc

Issue 9615007: Fix the regexp for ProcessUtilTest.MacTerminateOnHeapCorruption (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #define _CRT_SECURE_NO_WARNINGS 5 #define _CRT_SECURE_NO_WARNINGS
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/eintr_wrapper.h" 10 #include "base/eintr_wrapper.h"
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 char buf[3]; 457 char buf[3];
458 #ifndef ADDRESS_SANITIZER 458 #ifndef ADDRESS_SANITIZER
459 ASSERT_DEATH(free(buf), "being freed.*" 459 ASSERT_DEATH(free(buf), "being freed.*"
460 "\\*\\*\\* set a breakpoint in malloc_error_break to debug.*" 460 "\\*\\*\\* set a breakpoint in malloc_error_break to debug.*"
461 "Terminating process due to a potential for future heap corruption"); 461 "Terminating process due to a potential for future heap corruption");
462 #else 462 #else
463 // AddressSanitizer replaces malloc() and prints a different error message on 463 // AddressSanitizer replaces malloc() and prints a different error message on
464 // heap corruption. 464 // heap corruption.
465 ASSERT_DEATH(free(buf), "attempting free on address which " 465 ASSERT_DEATH(free(buf), "attempting free on address which "
466 "was not malloc()-ed: .*"); 466 "was not malloc\\(\\)-ed");
467 #endif 467 #endif
468 } 468 }
469 469
470 #endif // defined(OS_MACOSX) 470 #endif // defined(OS_MACOSX)
471 471
472 #if defined(OS_POSIX) 472 #if defined(OS_POSIX)
473 473
474 namespace { 474 namespace {
475 475
476 // Returns the maximum number of files that a process can have open. 476 // Returns the maximum number of files that a process can have open.
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 SetUpInDeathAssert(); 1157 SetUpInDeathAssert();
1158 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {} 1158 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {}
1159 }, ""); 1159 }, "");
1160 } 1160 }
1161 1161
1162 #endif // !ARCH_CPU_64_BITS 1162 #endif // !ARCH_CPU_64_BITS
1163 #endif // OS_MACOSX 1163 #endif // OS_MACOSX
1164 1164
1165 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) && 1165 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) &&
1166 // !defined(OS_WIN) && !defined(ADDRESS_SANITIZER) 1166 // !defined(OS_WIN) && !defined(ADDRESS_SANITIZER)
OLDNEW
« 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