ipa-kernel-tests: fixed IPAHeaderInsertionTest004
Add Header with len value of 0 is valid. Removed the part in the test which expect to fail with value of 0. Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
This commit is contained in:
@@ -828,13 +828,9 @@ public:
|
|||||||
virtual bool TestLogic() {
|
virtual bool TestLogic() {
|
||||||
|
|
||||||
// Try to add headers with invalid values.
|
// Try to add headers with invalid values.
|
||||||
// Valid values are between 1 to IPA_HDR_MAX_SIZE (64).
|
// Valid values are between 0 to IPA_HDR_MAX_SIZE (64).
|
||||||
// We expect the below functions to fail.
|
|
||||||
if (AddSingleHeaderAndCheck(0)) {
|
|
||||||
LOG_MSG_ERROR("This is unexpected, this can't succeed");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// We expect the below function to fail.
|
||||||
if (AddSingleHeaderAndCheck(MAX_HEADER_SIZE + 1)) {
|
if (AddSingleHeaderAndCheck(MAX_HEADER_SIZE + 1)) {
|
||||||
LOG_MSG_ERROR("This is unexpected, this can't succeed");
|
LOG_MSG_ERROR("This is unexpected, this can't succeed");
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user