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

Side by Side Diff: base/shared_memory_unittest.cc

Issue 9386014: Flakiness cleanup: disable flaky tests under base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « base/process_util_unittest.cc ('k') | base/timer_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #if defined(OS_MACOSX) 6 #if defined(OS_MACOSX)
7 #include "base/mac/scoped_nsautorelease_pool.h" 7 #include "base/mac/scoped_nsautorelease_pool.h"
8 #endif 8 #endif
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 memory.Close(); 397 memory.Close();
398 return errors; 398 return errors;
399 } 399 }
400 400
401 private: 401 private:
402 static const char* const s_test_name_; 402 static const char* const s_test_name_;
403 }; 403 };
404 404
405 const char* const SharedMemoryProcessTest::s_test_name_ = "MPMem"; 405 const char* const SharedMemoryProcessTest::s_test_name_ = "MPMem";
406 406
407 407 // http://crbug.com/61589
408 #if defined(OS_MACOSX) 408 #if defined(OS_MACOSX)
409 #define MAYBE_Tasks FLAKY_Tasks 409 #define MAYBE_Tasks DISABLED_Tasks
410 #else 410 #else
411 #define MAYBE_Tasks Tasks 411 #define MAYBE_Tasks Tasks
412 #endif 412 #endif
413 413
414 TEST_F(SharedMemoryProcessTest, MAYBE_Tasks) { 414 TEST_F(SharedMemoryProcessTest, MAYBE_Tasks) {
415 SharedMemoryProcessTest::CleanUp(); 415 SharedMemoryProcessTest::CleanUp();
416 416
417 ProcessHandle handles[kNumTasks]; 417 ProcessHandle handles[kNumTasks];
418 for (int index = 0; index < kNumTasks; ++index) { 418 for (int index = 0; index < kNumTasks; ++index) {
419 handles[index] = SpawnChild("SharedMemoryTestMain", false); 419 handles[index] = SpawnChild("SharedMemoryTestMain", false);
420 ASSERT_TRUE(handles[index]); 420 ASSERT_TRUE(handles[index]);
421 } 421 }
422 422
423 int exit_code = 0; 423 int exit_code = 0;
424 for (int index = 0; index < kNumTasks; ++index) { 424 for (int index = 0; index < kNumTasks; ++index) {
425 EXPECT_TRUE(WaitForExitCode(handles[index], &exit_code)); 425 EXPECT_TRUE(WaitForExitCode(handles[index], &exit_code));
426 EXPECT_TRUE(exit_code == 0); 426 EXPECT_TRUE(exit_code == 0);
427 } 427 }
428 428
429 SharedMemoryProcessTest::CleanUp(); 429 SharedMemoryProcessTest::CleanUp();
430 } 430 }
431 431
432 MULTIPROCESS_TEST_MAIN(SharedMemoryTestMain) { 432 MULTIPROCESS_TEST_MAIN(SharedMemoryTestMain) {
433 return SharedMemoryProcessTest::TaskTestMain(); 433 return SharedMemoryProcessTest::TaskTestMain();
434 } 434 }
435 435
436 } // namespace base 436 } // namespace base
OLDNEW
« no previous file with comments | « base/process_util_unittest.cc ('k') | base/timer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698