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

Commit ed254507 authored by Daniel Zheng's avatar Daniel Zheng Committed by Gerrit Code Review
Browse files

Merge "libsnapshot: add test for merge_size param" into main

parents 11f08531 39fe6e1d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2665,6 +2665,7 @@ TEST_F(SnapshotTest, FlagCheck) {
    status.set_o_direct(true);
    status.set_io_uring_enabled(true);
    status.set_userspace_snapshots(true);
    status.set_cow_op_merge_size(16);

    sm->WriteSnapshotUpdateStatus(lock_.get(), status);
    // Ensure a connection to the second-stage daemon, but use the first-stage
@@ -2686,6 +2687,8 @@ TEST_F(SnapshotTest, FlagCheck) {
                snapuserd_argv.end());
    ASSERT_TRUE(std::find(snapuserd_argv.begin(), snapuserd_argv.end(), "-user_snapshot") !=
                snapuserd_argv.end());
    ASSERT_TRUE(std::find(snapuserd_argv.begin(), snapuserd_argv.end(), "-cow_op_merge_size=16") !=
                snapuserd_argv.end());
}

class FlashAfterUpdateTest : public SnapshotUpdateTest,