| Index: chrome/browser/process_singleton_linux_uitest.cc
|
| ===================================================================
|
| --- chrome/browser/process_singleton_linux_uitest.cc (revision 80485)
|
| +++ chrome/browser/process_singleton_linux_uitest.cc (working copy)
|
| @@ -171,10 +171,7 @@
|
| NotifyOtherProcess(url, TestTimeouts::action_timeout_ms()));
|
|
|
| // Wait for a while to make sure the browser process is actually killed.
|
| - int exit_code = 0;
|
| - ASSERT_TRUE(launcher_->WaitForBrowserProcessToQuit(
|
| - TestTimeouts::action_max_timeout_ms(), &exit_code));
|
| - EXPECT_EQ(-1, exit_code); // Expect unclean shutdown.
|
| + EXPECT_FALSE(CrashAwareSleep(TestTimeouts::action_timeout_ms()));
|
| }
|
|
|
| // Test that we don't kill ourselves by accident if a lockfile with the same pid
|
| @@ -228,10 +225,7 @@
|
| // Kill the browser process, so that it does not respond on the socket.
|
| kill(pid, SIGKILL);
|
| // Wait for a while to make sure the browser process is actually killed.
|
| - int exit_code = 0;
|
| - ASSERT_TRUE(launcher_->WaitForBrowserProcessToQuit(
|
| - TestTimeouts::action_max_timeout_ms(), &exit_code));
|
| - EXPECT_EQ(-1, exit_code); // Expect unclean shutdown.
|
| + EXPECT_FALSE(CrashAwareSleep(TestTimeouts::action_timeout_ms()));
|
|
|
| EXPECT_EQ(0, unlink(lock_path_.value().c_str()));
|
| EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str()));
|
| @@ -253,10 +247,7 @@
|
| // Kill the browser process, so that it does not respond on the socket.
|
| kill(pid, SIGKILL);
|
| // Wait for a while to make sure the browser process is actually killed.
|
| - int exit_code = 0;
|
| - ASSERT_TRUE(launcher_->WaitForBrowserProcessToQuit(
|
| - TestTimeouts::action_max_timeout_ms(), &exit_code));
|
| - EXPECT_EQ(-1, exit_code); // Expect unclean shutdown.
|
| + EXPECT_FALSE(CrashAwareSleep(TestTimeouts::action_timeout_ms()));
|
|
|
| EXPECT_EQ(0, unlink(lock_path_.value().c_str()));
|
| EXPECT_EQ(0, symlink("FAKEFOOHOST-1234", lock_path_.value().c_str()));
|
|
|