diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-02-01 10:44:21 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-02-01 10:44:21 +0200 |
commit | c224dbe038571c6a581746c26607abcb627c819f (patch) | |
tree | 9f5733b0bee2177148adeb0b413fca3f58c94a51 /src/gtest | |
parent | 2509553bb66732dc465ec5e2d9b710f5edabd362 (diff) |
fix vm bug with packet size bigger than 128 and field<33
Diffstat (limited to 'src/gtest')
-rw-r--r-- | src/gtest/trex_stateless_gtest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gtest/trex_stateless_gtest.cpp b/src/gtest/trex_stateless_gtest.cpp index 2c55fc39..704a24b7 100644 --- a/src/gtest/trex_stateless_gtest.cpp +++ b/src/gtest/trex_stateless_gtest.cpp @@ -148,11 +148,11 @@ TEST_F(basic_vm, pkt_size) { EXPECT_EQ(calc_writable_mbuf_size(45,65),65); EXPECT_EQ(calc_writable_mbuf_size(66,65),65); EXPECT_EQ(calc_writable_mbuf_size(62,128),128); - EXPECT_EQ(calc_writable_mbuf_size(62,252),61); - EXPECT_EQ(calc_writable_mbuf_size(121,252),120); - EXPECT_EQ(calc_writable_mbuf_size(253,252),252); + EXPECT_EQ(calc_writable_mbuf_size(62,252),63); + EXPECT_EQ(calc_writable_mbuf_size(121,252),122); + EXPECT_EQ(calc_writable_mbuf_size(253,252),254); EXPECT_EQ(calc_writable_mbuf_size(250,252),252); - EXPECT_EQ(calc_writable_mbuf_size(184,252),183); + EXPECT_EQ(calc_writable_mbuf_size(184,252),185); } |