mirror of
https://github.com/kmod-project/kmod.git
synced 2026-01-26 15:39:08 +00:00
testsuite: add test for get_backoff_delta_msec
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> Link: https://github.com/kmod-project/kmod/pull/377 Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
This commit is contained in:
parent
65afd0f1c6
commit
f71f74efa0
@ -286,6 +286,11 @@ static int test_backoff_time(void)
|
||||
assert_return(delta == 0, EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Check when end time has passed */
|
||||
delta = 0;
|
||||
get_backoff_delta_msec(now_msec() - 10, &delta);
|
||||
assert_return(delta == 0, EXIT_FAILURE);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
DEFINE_TEST(test_backoff_time,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user