]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2995] fixed ARM for perfdhcp -D option
authorRazvan Becheriu <razvan@isc.org>
Fri, 4 Aug 2023 01:57:19 +0000 (04:57 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 4 Aug 2023 01:57:19 +0000 (04:57 +0300)
doc/sphinx/man/perfdhcp.8.rst
src/bin/perfdhcp/tests/command_options_unittest.cc

index b3c3db088f7326231a1bda8410728eac2e6110dc..465d6f051f334e93c28fb51f571355e199857409 100644 (file)
@@ -410,7 +410,7 @@ Options Controlling a Test
 
 ``-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
index 08720d5038b2b157cda106405a0b5384d6dfd373..b068a5c5bbab3968ad2c617361e82e2f2bee9307 100644 (file)
@@ -726,6 +726,9 @@ TEST_F(CommandOptionsTest, MaxDrop) {
     // 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);