Commit c8d6f38a authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[2318] Test for very low negative value removed.

Test was wrong because fromJSON function filters out low numbers anyway
and caused exception when preparing the data for the unit test.
parent 17749f1e
......@@ -571,17 +571,6 @@ TEST_F(Dhcp6ParserTest, optionNameSpaces) {
testInvalidOptionParam("option foo", "name");
}
// Verify that very low negative option code is rejected in
// the configuration.
TEST_F(Dhcp6ParserTest, optionCodeNegativeOverflow) {
// Using negative code. If range checking is not applied on the
// value then it may be successfully cast to uint16_t resulting
// in a value of 65531 (which will be accepted). The code should however
// detect that it is actually very low negative value and parsing should
// fail.
testInvalidOptionParam("-4294901765", "code");
}
// Verify that negative option code is rejected in the configuration.
TEST_F(Dhcp6ParserTest, optionCodeNegative) {
// Check negative option code -4. This should fail too.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment