summaryrefslogtreecommitdiff
path: root/libs/hwui/tests
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-04-24 01:11:37 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-04-24 01:11:37 -0700
commitbdcd59803b4eb3e6a3b00e6483fe198b748f3bc3 (patch)
tree2fb8aaf05ccbbbb0c53a55623fbc675d01f6987d /libs/hwui/tests
parent793a6b728f666774221448533f54048ce7985196 (diff)
parent64bb45ad2a78e445d22d9367d172e01898d2155c (diff)
Merge "Disable flaky tests" into qt-dev am: 30a25acb83
am: 64bb45ad2a Change-Id: I4523099930a8f5a105882fb2049266b75650770f
Diffstat (limited to 'libs/hwui/tests')
-rw-r--r--libs/hwui/tests/unit/CommonPoolTests.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/libs/hwui/tests/unit/CommonPoolTests.cpp b/libs/hwui/tests/unit/CommonPoolTests.cpp
index 70a5f5acbb6e..da6a2604a4b6 100644
--- a/libs/hwui/tests/unit/CommonPoolTests.cpp
+++ b/libs/hwui/tests/unit/CommonPoolTests.cpp
@@ -36,7 +36,9 @@ TEST(CommonPool, post) {
EXPECT_TRUE(ran) << "Failed to flip atomic after 1 second";
}
-TEST(CommonPool, threadCount) {
+// test currently relies on timings, which
+// makes it flaky. Disable for now
+TEST(DISABLED_CommonPool, threadCount) {
std::set<pid_t> threads;
std::array<std::future<pid_t>, 64> futures;
for (int i = 0; i < futures.size(); i++) {
@@ -93,7 +95,9 @@ TEST(CommonPool, singleThread) {
EXPECT_NE(gettid(), tid1);
}
-TEST(CommonPool, fullQueue) {
+// Test currently relies on timings
+// which makes it flaky, disable for now
+TEST(DISABLED_CommonPool, fullQueue) {
std::mutex lock;
std::condition_variable fence;
bool signaled = false;
@@ -179,4 +183,4 @@ TEST(CommonPool, syncLifecycleCheck) {
}
CommonPool::waitForIdle();
ASSERT_EQ(0, ObjectTracker::count());
-} \ No newline at end of file
+}