| Index: base/process_util_unittest.cc
|
| ===================================================================
|
| --- base/process_util_unittest.cc (revision 124387)
|
| +++ base/process_util_unittest.cc (working copy)
|
| @@ -455,9 +455,16 @@
|
| // will fail.
|
|
|
| char buf[3];
|
| +#ifndef ADDRESS_SANITIZER
|
| ASSERT_DEATH(free(buf), "being freed.*"
|
| "\\*\\*\\* set a breakpoint in malloc_error_break to debug.*"
|
| "Terminating process due to a potential for future heap corruption");
|
| +#else
|
| + // AddressSanitizer replaces malloc() and prints a different error message on
|
| + // heap corruption.
|
| + ASSERT_DEATH(free(buf), "attempting free on address which "
|
| + "was not malloc()-ed: .*");
|
| +#endif
|
| }
|
|
|
| #endif // defined(OS_MACOSX)
|
|
|