Skip to content

Commit 98215d3

Browse files
committed
CMake: Fix ChainingBlockDevice unittest
- ChainingBlockModuleTest test case compares two strings with EXPECT_EQ which normally compare strings residing memory address so replaced it with EXPECT_STREQ to compare strings.
1 parent 4536fff commit 98215d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/blockdevice/tests/UNITTESTS/blockdevice/ChainingBlockDevice/test_ChainingBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ TEST_F(ChainingBlockModuleTest, init)
9696
EXPECT_EQ(b.read(buf, 0, BLOCK_SIZE), BD_ERROR_DEVICE_ERROR);
9797
// EXPECT_EQ(b.deinit(), BD_ERROR_OK);
9898
EXPECT_EQ(b.sync(), BD_ERROR_DEVICE_ERROR);
99-
EXPECT_EQ(b.get_type(), "CHAINING");
99+
EXPECT_STREQ(b.get_type(), "CHAINING");
100100

101101
EXPECT_CALL(bd_mock1, init());
102102
EXPECT_CALL(bd_mock1, size()).WillOnce(Return((SECTORS_NUM / 2)*BLOCK_SIZE));

0 commit comments

Comments
 (0)