Commit 38973a4d authored by vitaliii's avatar vitaliii Committed by Commit Bot

[Sheriff] Disable ContextProviderImplTest.CleansUpContextJobs.

Disable ContextProviderImplTest.CleansUpContextJobs in Fuchsia (flaky).


TBR=scottmg@chromium.org

Bug: 989085
Change-Id: Ief0416fc1f348a8d275dbfc0b8e53281dee09bbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1729209Reviewed-by: default avatarvitaliii <vitaliii@chromium.org>
Commit-Queue: vitaliii <vitaliii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#682693}
parent 831c60b0
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "base/path_service.h" #include "base/path_service.h"
#include "base/test/multiprocess_test.h" #include "base/test/multiprocess_test.h"
#include "base/test/test_timeouts.h" #include "base/test/test_timeouts.h"
#include "build/build_config.h"
#include "fuchsia/engine/common.h" #include "fuchsia/engine/common.h"
#include "fuchsia/engine/fake_context.h" #include "fuchsia/engine/fake_context.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
...@@ -323,7 +324,13 @@ static bool WaitUntilJobIsEmpty(zx::unowned_job job, zx::duration timeout) { ...@@ -323,7 +324,13 @@ static bool WaitUntilJobIsEmpty(zx::unowned_job job, zx::duration timeout) {
} }
// Regression test for https://crbug.com/927403 (Job leak per-Context). // Regression test for https://crbug.com/927403 (Job leak per-Context).
TEST_F(ContextProviderImplTest, CleansUpContextJobs) { // TODO(http://crbug.com/989085): Flakily fails on Fuchsia x64.
#if defined(OS_FUCHSIA)
#define MAYBE_CleansUpContextJobs DISABLED_CleansUpContextJobs
#else
#define MAYBE_CleansUpContextJobs CleansUpContextJobs
#endif
TEST_F(ContextProviderImplTest, MAYBE_CleansUpContextJobs) {
// Replace the default job with one that is guaranteed to be empty. // Replace the default job with one that is guaranteed to be empty.
zx::job job; zx::job job;
ASSERT_EQ(base::GetDefaultJob()->duplicate(ZX_RIGHT_SAME_RIGHTS, &job), ASSERT_EQ(base::GetDefaultJob()->duplicate(ZX_RIGHT_SAME_RIGHTS, &job),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment