Skip to content

Commit bc97b82

Browse files
committed
test/crimson: drop cout from seastore tests
Signed-off-by: Yingxin Cheng <[email protected]>
1 parent 3df6477 commit bc97b82

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/test/crimson/seastore/test_seastore.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -794,26 +794,20 @@ TEST_P(seastore_test_t, clone_aligned_extents)
794794
test_obj.write(*sharded_seastore, 0, 4096, 'a');
795795

796796
test_obj.clone(*sharded_seastore, 10);
797-
std::cout << "reading origin after clone10" << std::endl;
798797
test_obj.read(*sharded_seastore, 0, 4096);
799798
test_obj.write(*sharded_seastore, 0, 4096, 'b');
800799
test_obj.write(*sharded_seastore, 4096, 4096, 'c');
801-
std::cout << "reading origin after clone10 and write" << std::endl;
802800
test_obj.read(*sharded_seastore, 0, 8192);
803801
auto clone_obj10 = test_obj.get_clone(10);
804-
std::cout << "reading clone after clone10 and write" << std::endl;
805802
clone_obj10.read(*sharded_seastore, 0, 8192);
806803

807804
test_obj.clone(*sharded_seastore, 20);
808-
std::cout << "reading origin after clone20" << std::endl;
809805
test_obj.read(*sharded_seastore, 0, 4096);
810806
test_obj.write(*sharded_seastore, 0, 4096, 'd');
811807
test_obj.write(*sharded_seastore, 4096, 4096, 'e');
812808
test_obj.write(*sharded_seastore, 8192, 4096, 'f');
813-
std::cout << "reading origin after clone20 and write" << std::endl;
814809
test_obj.read(*sharded_seastore, 0, 12288);
815810
auto clone_obj20 = test_obj.get_clone(20);
816-
std::cout << "reading clone after clone20 and write" << std::endl;
817811
clone_obj10.read(*sharded_seastore, 0, 12288);
818812
clone_obj20.read(*sharded_seastore, 0, 12288);
819813
});
@@ -829,31 +823,25 @@ TEST_P(seastore_test_t, clone_unaligned_extents)
829823

830824
test_obj.clone(*sharded_seastore, 10);
831825
test_obj.write(*sharded_seastore, 4096, 12288, 'd');
832-
std::cout << "reading origin after clone10 and write" << std::endl;
833826
test_obj.read(*sharded_seastore, 0, 24576);
834827

835828
auto clone_obj10 = test_obj.get_clone(10);
836-
std::cout << "reading clone after clone10 and write" << std::endl;
837829
clone_obj10.read(*sharded_seastore, 0, 24576);
838830

839831
test_obj.clone(*sharded_seastore, 20);
840832
test_obj.write(*sharded_seastore, 8192, 12288, 'e');
841-
std::cout << "reading origin after clone20 and write" << std::endl;
842833
test_obj.read(*sharded_seastore, 0, 24576);
843834

844835
auto clone_obj20 = test_obj.get_clone(20);
845-
std::cout << "reading clone after clone20 and write" << std::endl;
846836
clone_obj10.read(*sharded_seastore, 0, 24576);
847837
clone_obj20.read(*sharded_seastore, 0, 24576);
848838

849839
test_obj.write(*sharded_seastore, 0, 24576, 'f');
850840
test_obj.clone(*sharded_seastore, 30);
851841
test_obj.write(*sharded_seastore, 8192, 4096, 'g');
852-
std::cout << "reading origin after clone30 and write" << std::endl;
853842
test_obj.read(*sharded_seastore, 0, 24576);
854843

855844
auto clone_obj30 = test_obj.get_clone(30);
856-
std::cout << "reading clone after clone30 and write" << std::endl;
857845
clone_obj10.read(*sharded_seastore, 0, 24576);
858846
clone_obj20.read(*sharded_seastore, 0, 24576);
859847
clone_obj30.read(*sharded_seastore, 0, 24576);
@@ -909,7 +897,6 @@ TEST_P(seastore_test_t, attr)
909897
EXPECT_EQ(attrs.find(SS_ATTR), attrs.end());
910898
EXPECT_EQ(attrs.find("test_key"), attrs.end());
911899

912-
std::cout << "test_key passed" << std::endl;
913900
//create OI_ATTR with len > onode_layout_t::MAX_OI_LENGTH, rm OI_ATTR
914901
//create SS_ATTR with len > onode_layout_t::MAX_SS_LENGTH, rm SS_ATTR
915902
char oi_array[onode_layout_t::MAX_OI_LENGTH + 1] = {'a'};

src/test/crimson/seastore/test_transaction_manager.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,6 @@ TEST_P(tm_random_block_device_test_t, scatter_allocation)
17231723
auto t = create_transaction();
17241724
for (int i = 0; i < 1991; i++) {
17251725
auto extents = alloc_extents(t, ADDR + i * 16384, 16384, 'a');
1726-
std::cout << "num of extents: " << extents.size() << std::endl;
17271726
}
17281727
alloc_extents_deemed_fail(t, ADDR + 1991 * 16384, 16384, 'a');
17291728
check_mappings(t);

0 commit comments

Comments
 (0)