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

Unified Diff: base/process_util_unittest.cc

Issue 12212149: Base: disable GetNumberOfThreads unittest on Android. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util_unittest.cc
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc
index 309b87ccb2ee35918c1ad40a5fc7b78db64a2902..cbbedb7988ce9b63e0042a89c6386292a9e6bb54 100644
--- a/base/process_util_unittest.cc
+++ b/base/process_util_unittest.cc
@@ -946,6 +946,9 @@ TEST_F(ProcessUtilTest, ParseProcStatCPU) {
EXPECT_EQ(0, base::ParseProcStatCPU(kSelfStat));
}
+// Disable on Android because base_unittests runs inside a Dalvik VM that
+// starts and stop threads (crbug.com/175563).
+#if !defined(OS_ANDROID)
TEST_F(ProcessUtilTest, GetNumberOfThreads) {
const base::ProcessHandle current = base::GetCurrentProcessHandle();
const int initial_threads = base::GetNumberOfThreads(current);
@@ -962,6 +965,7 @@ TEST_F(ProcessUtilTest, GetNumberOfThreads) {
// The Thread destructor will stop them.
ASSERT_EQ(initial_threads, base::GetNumberOfThreads(current));
}
+#endif // !defined(OS_ANDROID)
#endif // defined(OS_LINUX) || defined(OS_ANDROID)
« 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