Skip to contentSkip to conversation

binder: mark binder_alloc_exhaustive_test as slow

PATCH In review Carlos Llamas 3 participants 3 messages Oct 24, 2025 – Oct 27, 2025 Android drivers

lore
Share & tools
lore

Carlos Llamas

author maintainer
#0 lore raw

PATCH 1/1 binder: mark binder_alloc_exhaustive_test as slow

The binder_alloc_exhaustive_test kunit test takes over 30s to complete and the kunit framework reports:

# binder_alloc_exhaustive_test: Test should be marked slow (runtime: 33.842881934s)

Mark the test as suggested to silence the warning.

---
 drivers/android/tests/binder_alloc_kunit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/tests/binder_alloc_kunit.c +1 -1
index 9b884d977f76..7f9cc003bbe3 100644
@@ -554,7 +554,7 @@ static void binder_alloc_test_exit(struct kunit *test)
 static struct kunit_case binder_alloc_test_cases[] = {
 	KUNIT_CASE(binder_alloc_test_init_freelist),
 	KUNIT_CASE(binder_alloc_test_mmap),
-	KUNIT_CASE(binder_alloc_exhaustive_test),
+	KUNIT_CASE_SLOW(binder_alloc_exhaustive_test),
 	{}
 };
 
Signature · 1 line
2.51.1.821.gb6fe4d2222-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Carlos Llamas

The binder_alloc_exhaustive_test kunit test takes over 30s to complete and the kunit framework reports:

# binder_alloc_exhaustive_test: Test should be marked slow (runtime:
33.842881934s)

Mark the test as suggested to silence the warning.

---
  drivers/android/tests/binder_alloc_kunit.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/android/tests/binder_alloc_kunit.c +0 -0
index 9b884d977f76..7f9cc003bbe3 100644

drivers/android/tests/binder_alloc_kunit.c static void binder_alloc_test_exit(struct kunit *test) · line 559

Quoted 7 lines
drivers/android/tests/binder_alloc_kunit.c +1 -1
@@ -554,7 +554,7 @@ static void binder_alloc_test_exit(struct kunit *test)
  static struct kunit_case binder_alloc_test_cases[] = {
  	KUNIT_CASE(binder_alloc_test_init_freelist),
  	KUNIT_CASE(binder_alloc_test_mmap),
-	KUNIT_CASE(binder_alloc_exhaustive_test),
+	KUNIT_CASE_SLOW(binder_alloc_exhaustive_test),
  	{}
  };
Signature · 1 line
Tiffany Y. Yang
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Carlos Llamas
Quoted 9 lines · Carlos Llamas

The binder_alloc_exhaustive_test kunit test takes over 30s to complete and the kunit framework reports:

# binder_alloc_exhaustive_test: Test should be marked slow (runtime: 33.842881934s)

Mark the test as suggested to silence the warning.