From e53dc26d14a535cf6674c08dfbec88ed138ec03e Mon Sep 17 00:00:00 2001 From: Per Larsen Date: Wed, 4 Oct 2023 19:49:39 +0000 Subject: threadtest: disable flaky thread cookie tests Thread cookie tests that may panic in thread_resched are flakey and need non-trivial updates to ensure correctness and reliability. Disable these tests until they can be properly fixed. Bug: 300168583 Test: build.py --test com.android.kernel.threadtest (run repeatedly) Change-Id: I0e5f37b2e412d939e7f1d107850d5f808df343ea --- app/threadtest/threadtest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/threadtest/threadtest.c b/app/threadtest/threadtest.c index 4ede555e..03bb35de 100644 --- a/app/threadtest/threadtest.c +++ b/app/threadtest/threadtest.c @@ -76,7 +76,8 @@ static int thread_test_corrupt_cookie_before_yield_fn(void *unused) { return ERR_GENERIC; } -TEST(threadtest, cookie_corruption_before_yield_must_panic) { +/* TODO(b/300168583): fix test flakyness. */ +TEST(threadtest, DISABLED_cookie_corruption_before_yield_must_panic) { int ret; ret = threadtest_run_in_thread("yielding_cookie_corrupter_thread", thread_test_corrupt_cookie_before_yield_fn, @@ -103,7 +104,8 @@ static int thread_test_corrupt_cookie_before_preempt_fn(void *unused) { return ERR_GENERIC; } -TEST(threadtest, cookie_corruption_before_preempt_must_panic) { +/* TODO(b/300168583): fix test flakyness. */ +TEST(threadtest, DISABLED_cookie_corruption_before_preempt_must_panic) { int ret; ret = threadtest_run_in_thread("preempted_cookie_corrupter_thread", thread_test_corrupt_cookie_before_preempt_fn, -- cgit v1.2.3