@@ -835,8 +835,8 @@ TEST_F(TestMockMigrationQCOWFormat, Read) {
835835 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
836836 bufferlist bl;
837837 io::ReadResult read_result{&bl};
838- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
839- std::move (read_result), 0 , 0 , {}) );
838+ mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
839+ std::move (read_result), 0 , 0 , {});
840840 ASSERT_EQ (123 , ctx2.wait ());
841841 ASSERT_EQ (expect_bl, bl);
842842
@@ -870,8 +870,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadL1DNE) {
870870 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
871871 bufferlist bl;
872872 io::ReadResult read_result{&bl};
873- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{234 , 123 }},
874- std::move (read_result), 0 , 0 , {}) );
873+ mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{234 , 123 }},
874+ std::move (read_result), 0 , 0 , {});
875875 ASSERT_EQ (123 , ctx2.wait ());
876876 bufferlist expect_bl;
877877 expect_bl.append_zero (123 );
@@ -910,8 +910,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadL2DNE) {
910910 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
911911 bufferlist bl;
912912 io::ReadResult read_result{&bl};
913- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{234 , 123 }},
914- std::move (read_result), 0 , 0 , {}) );
913+ mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{234 , 123 }},
914+ std::move (read_result), 0 , 0 , {});
915915 ASSERT_EQ (123 , ctx2.wait ());
916916 bufferlist expect_bl;
917917 expect_bl.append_zero (123 );
@@ -950,8 +950,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadZero) {
950950 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
951951 bufferlist bl;
952952 io::ReadResult read_result{&bl};
953- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
954- std::move (read_result), 0 , 0 , {}) );
953+ mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
954+ std::move (read_result), 0 , 0 , {});
955955 ASSERT_EQ (123 , ctx2.wait ());
956956 bufferlist expect_bl;
957957 expect_bl.append_zero (123 );
@@ -1004,8 +1004,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadSnap) {
10041004 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
10051005 bufferlist bl;
10061006 io::ReadResult read_result{&bl};
1007- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, 1 , {{65659 , 123 }},
1008- std::move (read_result), 0 , 0 , {}) );
1007+ mock_qcow_format.read (aio_comp, 1 , {{65659 , 123 }},
1008+ std::move (read_result), 0 , 0 , {});
10091009 ASSERT_EQ (123 , ctx2.wait ());
10101010 ASSERT_EQ (expect_bl, bl);
10111011
@@ -1039,8 +1039,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadSnapDNE) {
10391039 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
10401040 bufferlist bl;
10411041 io::ReadResult read_result{&bl};
1042- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, 1 , {{65659 , 123 }},
1043- std::move (read_result), 0 , 0 , {}) );
1042+ mock_qcow_format.read (aio_comp, 1 , {{65659 , 123 }},
1043+ std::move (read_result), 0 , 0 , {});
10441044 ASSERT_EQ (-ENOENT, ctx2.wait ());
10451045
10461046 C_SaferCond ctx3;
@@ -1090,8 +1090,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadClusterCacheHit) {
10901090 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
10911091 bufferlist bl1;
10921092 io::ReadResult read_result1{&bl1};
1093- ASSERT_TRUE ( mock_qcow_format.read (aio_comp1, CEPH_NOSNAP, {{65659 , 123 }},
1094- std::move (read_result1), 0 , 0 , {}) );
1093+ mock_qcow_format.read (aio_comp1, CEPH_NOSNAP, {{65659 , 123 }},
1094+ std::move (read_result1), 0 , 0 , {});
10951095 ASSERT_EQ (123 , ctx2.wait ());
10961096 ASSERT_EQ (expect_bl1, bl1);
10971097
@@ -1100,8 +1100,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadClusterCacheHit) {
11001100 &ctx3, m_image_ctx, io::AIO_TYPE_READ);
11011101 bufferlist bl2;
11021102 io::ReadResult read_result2{&bl2};
1103- ASSERT_TRUE ( mock_qcow_format.read (aio_comp2, CEPH_NOSNAP, {{66016 , 234 }},
1104- std::move (read_result2), 0 , 0 , {}) );
1103+ mock_qcow_format.read (aio_comp2, CEPH_NOSNAP, {{66016 , 234 }},
1104+ std::move (read_result2), 0 , 0 , {});
11051105 ASSERT_EQ (234 , ctx3.wait ());
11061106 ASSERT_EQ (expect_bl2, bl2);
11071107
@@ -1142,8 +1142,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadClusterError) {
11421142 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
11431143 bufferlist bl;
11441144 io::ReadResult read_result{&bl};
1145- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
1146- std::move (read_result), 0 , 0 , {}) );
1145+ mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
1146+ std::move (read_result), 0 , 0 , {});
11471147 ASSERT_EQ (-EIO, ctx2.wait ());
11481148
11491149 C_SaferCond ctx3;
@@ -1179,8 +1179,8 @@ TEST_F(TestMockMigrationQCOWFormat, ReadL2TableError) {
11791179 &ctx2, m_image_ctx, io::AIO_TYPE_READ);
11801180 bufferlist bl;
11811181 io::ReadResult read_result{&bl};
1182- ASSERT_TRUE ( mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
1183- std::move (read_result), 0 , 0 , {}) );
1182+ mock_qcow_format.read (aio_comp, CEPH_NOSNAP, {{65659 , 123 }},
1183+ std::move (read_result), 0 , 0 , {});
11841184 ASSERT_EQ (-EIO, ctx2.wait ());
11851185
11861186 C_SaferCond ctx3;
0 commit comments