``-D max-drop``
Aborts the test immediately if "max-drop" requests have been dropped.
- Use ``-D 0`` to abort if even a single request has
+ Use ``-D 1`` to abort if even a single request has
been dropped. "max-drop" must be a positive integer. If "max-drop"
includes the suffix ``%``, it specifies the maximum percentage of
requests that may be dropped before aborting. In this case, testing of
// Too many -D<value%> options
EXPECT_THROW(process(opt, "perfdhcp -D 99% -D 13% -l ethx -D 10% all"),
isc::InvalidParameter);
+ // Value is out of bounds
+ EXPECT_THROW(process(opt, "perfdhcp -D 0 -l ethx all"),
+ isc::InvalidParameter);
// Percentage is out of bounds
EXPECT_THROW(process(opt, "perfdhcp -D101% -D 13% -l ethx all"),
isc::InvalidParameter);