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

Side by Side Diff: base/process/process_util_unittest.cc

Issue 212643015: Use SYZYASAN instead of ADDRESS_SANITIZER. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « base/allocator/allocator_shim.cc ('k') | base/security_unittest.cc » ('j') | 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/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #endif 228 #endif
229 // Make this process have a segmentation fault. 229 // Make this process have a segmentation fault.
230 volatile int* oops = NULL; 230 volatile int* oops = NULL;
231 *oops = 0xDEAD; 231 *oops = 0xDEAD;
232 return 1; 232 return 1;
233 } 233 }
234 234
235 // This test intentionally crashes, so we don't need to run it under 235 // This test intentionally crashes, so we don't need to run it under
236 // AddressSanitizer. 236 // AddressSanitizer.
237 // TODO(jschuh): crbug.com/175753 Fix this in Win64 bots. 237 // TODO(jschuh): crbug.com/175753 Fix this in Win64 bots.
238 #if defined(ADDRESS_SANITIZER) || (defined(OS_WIN) && defined(ARCH_CPU_X86_64)) 238 #if defined(ADDRESS_SANITIZER) || \
239 (defined(OS_WIN) && defined(ARCH_CPU_X86_64)) || defined(SYZYASAN)
239 #define MAYBE_GetTerminationStatusCrash DISABLED_GetTerminationStatusCrash 240 #define MAYBE_GetTerminationStatusCrash DISABLED_GetTerminationStatusCrash
240 #else 241 #else
241 #define MAYBE_GetTerminationStatusCrash GetTerminationStatusCrash 242 #define MAYBE_GetTerminationStatusCrash GetTerminationStatusCrash
242 #endif 243 #endif
243 TEST_F(ProcessUtilTest, MAYBE_GetTerminationStatusCrash) { 244 TEST_F(ProcessUtilTest, MAYBE_GetTerminationStatusCrash) {
244 const std::string signal_file = 245 const std::string signal_file =
245 ProcessUtilTest::GetSignalFilePath(kSignalFileCrash); 246 ProcessUtilTest::GetSignalFilePath(kSignalFileCrash);
246 remove(signal_file.c_str()); 247 remove(signal_file.c_str());
247 base::ProcessHandle handle = SpawnChild("CrashingChildProcess"); 248 base::ProcessHandle handle = SpawnChild("CrashingChildProcess");
248 ASSERT_NE(base::kNullProcessHandle, handle); 249 ASSERT_NE(base::kNullProcessHandle, handle);
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 // Check that process was really killed. 842 // Check that process was really killed.
842 EXPECT_TRUE(IsProcessDead(child_process)); 843 EXPECT_TRUE(IsProcessDead(child_process));
843 base::CloseProcessHandle(child_process); 844 base::CloseProcessHandle(child_process);
844 } 845 }
845 846
846 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) { 847 MULTIPROCESS_TEST_MAIN(process_util_test_die_immediately) {
847 return 0; 848 return 0;
848 } 849 }
849 850
850 #endif // defined(OS_POSIX) 851 #endif // defined(OS_POSIX)
OLDNEW
« no previous file with comments | « base/allocator/allocator_shim.cc ('k') | base/security_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698