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

Side by Side Diff: base/process_util_unittest.cc

Issue 12217139: Disable ProcessUtilTest.GetTerminationStatusCrash on Win64 bots (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 ::signal(SIGSEGV, SIG_DFL); 250 ::signal(SIGSEGV, SIG_DFL);
251 #endif 251 #endif
252 // Make this process have a segmentation fault. 252 // Make this process have a segmentation fault.
253 volatile int* oops = NULL; 253 volatile int* oops = NULL;
254 *oops = 0xDEAD; 254 *oops = 0xDEAD;
255 return 1; 255 return 1;
256 } 256 }
257 257
258 // This test intentionally crashes, so we don't need to run it under 258 // This test intentionally crashes, so we don't need to run it under
259 // AddressSanitizer. 259 // AddressSanitizer.
260 #if defined(ADDRESS_SANITIZER) 260 // TODO(jschuh): crbug.com/175753 Fix this in Win64 bots.
261 #if defined(ADDRESS_SANITIZER) || (defined(OS_WIN) && defined(ARCH_CPU_X86_64))
261 #define MAYBE_GetTerminationStatusCrash DISABLED_GetTerminationStatusCrash 262 #define MAYBE_GetTerminationStatusCrash DISABLED_GetTerminationStatusCrash
262 #else 263 #else
263 #define MAYBE_GetTerminationStatusCrash GetTerminationStatusCrash 264 #define MAYBE_GetTerminationStatusCrash GetTerminationStatusCrash
264 #endif 265 #endif
265 TEST_F(ProcessUtilTest, MAYBE_GetTerminationStatusCrash) { 266 TEST_F(ProcessUtilTest, MAYBE_GetTerminationStatusCrash) {
266 const std::string signal_file = 267 const std::string signal_file =
267 ProcessUtilTest::GetSignalFilePath(kSignalFileCrash); 268 ProcessUtilTest::GetSignalFilePath(kSignalFileCrash);
268 remove(signal_file.c_str()); 269 remove(signal_file.c_str());
269 base::ProcessHandle handle = this->SpawnChild("CrashingChildProcess", 270 base::ProcessHandle handle = this->SpawnChild("CrashingChildProcess",
270 false); 271 false);
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 SetUpInDeathAssert(); 1231 SetUpInDeathAssert();
1231 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {} 1232 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {}
1232 }, ""); 1233 }, "");
1233 } 1234 }
1234 1235
1235 #endif // !ARCH_CPU_64_BITS 1236 #endif // !ARCH_CPU_64_BITS
1236 #endif // OS_MACOSX 1237 #endif // OS_MACOSX
1237 1238
1238 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) && 1239 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) &&
1239 // !defined(OS_WIN) && !defined(ADDRESS_SANITIZER) 1240 // !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