Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd3f99fd authored by Alex Vakulenko's avatar Alex Vakulenko Committed by android-build-merger
Browse files

Merge "libpdx: Fix ThreadLocalBufferTest.InitialValue unittest" into oc-dev

am: 99afa6dc

Change-Id: I42468f1d279fa41d90045bd7eb68e99e36d700e6
parents 102a7d1a 99afa6dc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,13 +89,13 @@ TEST(ThreadLocalBufferTest, ThreadSlots) {
  EXPECT_NE(id1, id2);
}

// TODO(b/36456321): Fix this and enable it again.
// Tests that thread-local buffers are allocated at the first buffer request.
TEST(ThreadLocalBufferTest, DISABLED_InitialValue) {
TEST(ThreadLocalBufferTest, InitialValue) {
  struct TypeTagX;
  using SendSlotX = ThreadLocalSlot<TypeTagX, kSendBufferIndex>;

  auto value1 = ThreadLocalBufferTest::GetSlotValue<SendSlotX>();
  MessageBuffer<SendSlotX>::GetBuffer();
  auto value2 = ThreadLocalBufferTest::GetSlotValue<SendSlotX>();

  EXPECT_EQ(0U, value1);