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

Commit 9d062088 authored by David Anderson's avatar David Anderson
Browse files

Fix failure in CowTest#InvalidMergeOrderTest.

This is failing on hwasan builds due to a typo in the test method. The
actual writer logic is unaffected.

Bug: 377298650
Test: valgrind cow_api_test
Change-Id: I5c3f32ae57bf90b9fd29c7446bf34bdcb004328c
parent de8fa774
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1487,7 +1487,7 @@ TEST_F(CowTest, InvalidMergeOrderTest) {
    writer = std::make_unique<CowWriterV2>(options, GetCowFd());
    ASSERT_TRUE(writer->Initialize());
    ASSERT_TRUE(writer->AddCopy(2, 1));
    ASSERT_TRUE(writer->AddXorBlocks(3, &data, data.size(), 1, 1));
    ASSERT_TRUE(writer->AddXorBlocks(3, data.data(), data.size(), 1, 1));
    ASSERT_TRUE(writer->Finalize());
    ASSERT_TRUE(reader.Parse(cow_->fd));
    ASSERT_FALSE(reader.VerifyMergeOps());