From: Emil Velikov Date: Fri, 30 May 2025 10:21:32 +0000 (+0100) Subject: testsuite/test-util: add extra get_backoff_delta_msec iteration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c32cd7ddc11f736088451913d9f981a02662838b;p=thirdparty%2Fkmod.git testsuite/test-util: add extra get_backoff_delta_msec iteration Add an extra test to check delta does not exceed the upper boundary. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/361 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/test-util.c b/testsuite/test-util.c index 13bdf1c0..7f71ef2a 100644 --- a/testsuite/test-util.c +++ b/testsuite/test-util.c @@ -270,6 +270,8 @@ static int test_backoff_time(void) assert_return(delta == 4, EXIT_FAILURE); get_backoff_delta_msec(now_msec() + 10, &delta); assert_return(delta == 8, EXIT_FAILURE); + get_backoff_delta_msec(now_msec() + 10, &delta); + assert_return(delta == 8, EXIT_FAILURE); { /* Check tail */