mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 10:14:57 +00:00
Fix an integer underflow bug in hooks test
The variable 'interval' is declared as unsigned integer, and this sometimes causes an integer underflow when substracting it by SECOND, and in turns leads to false test failure. Changing it to signed integer. BUG=chrome-os-partner:19236 TEST=Repeatedly run hooks test BRANCH=None Change-Id: Ic6d8001f90fb8756b6bdadf811a668c02fbccb34 Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/181882 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
10081abeb6
commit
65825452ba
@@ -70,7 +70,7 @@ static int test_init_hook(void)
|
||||
|
||||
static int test_ticks(void)
|
||||
{
|
||||
uint64_t interval;
|
||||
int64_t interval;
|
||||
int error_pct;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user