diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-08-04 14:54:51 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-04 22:38:39 +0000 |
commit | 7b9ce742e7177f7f034d42b6cb25f1d713871443 (patch) | |
tree | fa6b7665cf88dd0830b981284d32fb3e78d3392a /zephyr/test | |
parent | 7b5eaddf715ca56ff7f2b3761ce0ea003d2d3ac1 (diff) | |
download | chrome-ec-7b9ce742e7177f7f034d42b6cb25f1d713871443.tar.gz |
zephyr: hooks test: bump DEFERRED_DELAY_US
Apparently 250ms is too sensitive for Zephyr v2.6 and the test fails:
*** Booting Zephyr OS build zephyr-v2.6.0-77-g656dcdda8d73 ***
Running test suite hooks_tests
===================================================================
START - test_hook_list_multiple
PASS - test_hook_list_multiple in 0.0 seconds
===================================================================
START - test_hook_list_single
PASS - test_hook_list_single in 0.0 seconds
===================================================================
START - test_hook_list_empty
PASS - test_hook_list_empty in 0.0 seconds
===================================================================
START - test_deferred_func
PASS - test_deferred_func in 0.510 seconds
===================================================================
START - test_deferred_func_push_out
Assertion failed at CMAKE_SOURCE_DIR/hooks.c:116:
test_deferred_func_push_out: (deferred_func_2_called is true)
The deferred function was called, but should not have been
FAIL - test_deferred_func_push_out in 0.510 seconds
===================================================================
START - test_deferred_func_cancel
PASS - test_deferred_func_cancel in 0.510 seconds
===================================================================
Test suite hooks_tests failed.
===================================================================
PROJECT EXECUTION FAILED
Bump to 500ms so we can support Zephyr v2.6.
BUG=b:195571108
BRANCH=none
TEST=passes on both v2.5 and v2.6
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Id090fe9e678c9f168e3a1c3f90f048089a638fff
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3072416
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'zephyr/test')
-rw-r--r-- | zephyr/test/hooks/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/test/hooks/hooks.c b/zephyr/test/hooks/hooks.c index 9f504d4ff4..a9e0982e46 100644 --- a/zephyr/test/hooks/hooks.c +++ b/zephyr/test/hooks/hooks.c @@ -69,7 +69,7 @@ static void test_hook_list_empty(void) static bool deferred_func_called; -#define DEFERRED_DELAY_US (250 * 1000) +#define DEFERRED_DELAY_US (500 * 1000) static void deferred_func(void) { deferred_func_called = true; |