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

Side by Side Diff: base/process_util_unittest.cc

Issue 7792062: Disable failed test GetTerminationStatusExit on Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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) 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 #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/eintr_wrapper.h" 10 #include "base/eintr_wrapper.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 remove(kSignalFileSlow); 129 remove(kSignalFileSlow);
130 base::ProcessHandle handle = this->SpawnChild("SlowChildProcess", false); 130 base::ProcessHandle handle = this->SpawnChild("SlowChildProcess", false);
131 ASSERT_NE(base::kNullProcessHandle, handle); 131 ASSERT_NE(base::kNullProcessHandle, handle);
132 SignalChildren(kSignalFileSlow); 132 SignalChildren(kSignalFileSlow);
133 EXPECT_TRUE(base::WaitForSingleProcess( 133 EXPECT_TRUE(base::WaitForSingleProcess(
134 handle, TestTimeouts::action_max_timeout_ms())); 134 handle, TestTimeouts::action_max_timeout_ms()));
135 base::CloseProcessHandle(handle); 135 base::CloseProcessHandle(handle);
136 remove(kSignalFileSlow); 136 remove(kSignalFileSlow);
137 } 137 }
138 138
139 TEST_F(ProcessUtilTest, GetTerminationStatusExit) { 139 // Times out on Linux. http://crbug.com/95058
140 #if defined(OS LINUX)
M-A Ruel 2011/09/01 17:12:05 #if defined(OS_LINUX) !
141 #define MAYBE_GetTerminationStatusExit DISABLED_GetTerminationStatusExit
142 #else
143 #define MAYBE_GetTerminationStatusExit GetTerminationStatusExit
144 #endif
145
146 TEST_F(ProcessUtilTest, MAYBE_GetTerminationStatusExit) {
140 remove(kSignalFileSlow); 147 remove(kSignalFileSlow);
141 base::ProcessHandle handle = this->SpawnChild("SlowChildProcess", false); 148 base::ProcessHandle handle = this->SpawnChild("SlowChildProcess", false);
142 ASSERT_NE(base::kNullProcessHandle, handle); 149 ASSERT_NE(base::kNullProcessHandle, handle);
143 150
144 int exit_code = 42; 151 int exit_code = 42;
145 EXPECT_EQ(base::TERMINATION_STATUS_STILL_RUNNING, 152 EXPECT_EQ(base::TERMINATION_STATUS_STILL_RUNNING,
146 base::GetTerminationStatus(handle, &exit_code)); 153 base::GetTerminationStatus(handle, &exit_code));
147 EXPECT_EQ(kExpectedStillRunningExitCode, exit_code); 154 EXPECT_EQ(kExpectedStillRunningExitCode, exit_code);
148 155
149 SignalChildren(kSignalFileSlow); 156 SignalChildren(kSignalFileSlow);
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 ASSERT_DEATH({ 1023 ASSERT_DEATH({
1017 SetUpInDeathAssert(); 1024 SetUpInDeathAssert();
1018 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {} 1025 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {}
1019 }, ""); 1026 }, "");
1020 } 1027 }
1021 1028
1022 #endif // !ARCH_CPU_64_BITS 1029 #endif // !ARCH_CPU_64_BITS
1023 #endif // OS_MACOSX 1030 #endif // OS_MACOSX
1024 1031
1025 #endif // !defined(OS_WIN) 1032 #endif // !defined(OS_WIN)
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