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

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

Issue 417453002: Disable all the tests that are flaking more than 5% on Linux builders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | chrome/browser/component_updater/test/component_updater_service_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/process/process_metrics.h" 5 #include "base/process/process_metrics.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 9
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 "16 0 1 0 1676099790 2957312 114 4294967295 134512640 134528148 " 322 "16 0 1 0 1676099790 2957312 114 4294967295 134512640 134528148 "
323 "3221224832 3221224344 3086339742 0 0 0 0 0 0 0 17 0 0 0"; 323 "3221224832 3221224344 3086339742 0 0 0 0 0 0 0 17 0 0 0";
324 324
325 EXPECT_EQ(0, base::ParseProcStatCPU(kSelfStat)); 325 EXPECT_EQ(0, base::ParseProcStatCPU(kSelfStat));
326 } 326 }
327 #endif // defined(OS_LINUX) || defined(OS_ANDROID) 327 #endif // defined(OS_LINUX) || defined(OS_ANDROID)
328 328
329 // Disable on Android because base_unittests runs inside a Dalvik VM that 329 // Disable on Android because base_unittests runs inside a Dalvik VM that
330 // starts and stop threads (crbug.com/175563). 330 // starts and stop threads (crbug.com/175563).
331 #if defined(OS_LINUX) 331 #if defined(OS_LINUX)
332 TEST(ProcessMetricsTest, GetNumberOfThreads) { 332 // http://crbug.com/396455
333 TEST(ProcessMetricsTest, DISABLED_GetNumberOfThreads) {
333 const base::ProcessHandle current = base::GetCurrentProcessHandle(); 334 const base::ProcessHandle current = base::GetCurrentProcessHandle();
334 const int initial_threads = base::GetNumberOfThreads(current); 335 const int initial_threads = base::GetNumberOfThreads(current);
335 ASSERT_GT(initial_threads, 0); 336 ASSERT_GT(initial_threads, 0);
336 const int kNumAdditionalThreads = 10; 337 const int kNumAdditionalThreads = 10;
337 { 338 {
338 scoped_ptr<base::Thread> my_threads[kNumAdditionalThreads]; 339 scoped_ptr<base::Thread> my_threads[kNumAdditionalThreads];
339 for (int i = 0; i < kNumAdditionalThreads; ++i) { 340 for (int i = 0; i < kNumAdditionalThreads; ++i) {
340 my_threads[i].reset(new base::Thread("GetNumberOfThreadsTest")); 341 my_threads[i].reset(new base::Thread("GetNumberOfThreadsTest"));
341 my_threads[i]->Start(); 342 my_threads[i]->Start();
342 ASSERT_EQ(base::GetNumberOfThreads(current), initial_threads + 1 + i); 343 ASSERT_EQ(base::GetNumberOfThreads(current), initial_threads + 1 + i);
343 } 344 }
344 } 345 }
345 // The Thread destructor will stop them. 346 // The Thread destructor will stop them.
346 ASSERT_EQ(initial_threads, base::GetNumberOfThreads(current)); 347 ASSERT_EQ(initial_threads, base::GetNumberOfThreads(current));
347 } 348 }
348 #endif // defined(OS_LINUX) 349 #endif // defined(OS_LINUX)
349 350
350 } // namespace debug 351 } // namespace debug
351 } // namespace base 352 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/test/component_updater_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698