1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug for utest of message array, it does not free messages now.

This commit is contained in:
winlin 2014-11-29 18:36:40 +08:00
parent 23f4aa5737
commit abb0fce3d8

View file

@ -541,18 +541,18 @@ VOID TEST(ProtocolMsgArrayTest, MessageArray)
arr.msgs[2] = msg.copy();
EXPECT_EQ(3, msg.count());
}
EXPECT_EQ(0, msg.count());
EXPECT_EQ(3, msg.count());
if (true) {
SrsMessageArray arr(3);
arr.msgs[0] = msg.copy();
EXPECT_EQ(1, msg.count());
EXPECT_EQ(4, msg.count());
arr.msgs[2] = msg.copy();
EXPECT_EQ(2, msg.count());
EXPECT_EQ(5, msg.count());
}
EXPECT_EQ(0, msg.count());
EXPECT_EQ(5, msg.count());
}
/**