Skip to content

Commit 1857099

Browse files
novitollakpm00
authored andcommitted
kasan: change kasan_atomics kunit test as KUNIT_CASE_SLOW
During running KASAN Kunit tests with CONFIG_KASAN enabled, the following "warning" is reported by kunit framework: # kasan_atomics: Test should be marked slow (runtime: 2.604703115s) It took 2.6 seconds on my PC (Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz), apparently, due to multiple atomic checks in kasan_atomics_helper(). Let's mark it with KUNIT_CASE_SLOW which reports now as: # kasan_atomics.speed: slow Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sabyrzhan Tasbolatov <[email protected]> Reviewed-by: Andrey Konovalov <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Marco Elver <[email protected]> Cc: Vincenzo Frascino <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c28432a commit 1857099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/kasan/kasan_test_c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ static struct kunit_case kasan_kunit_test_cases[] = {
20752075
KUNIT_CASE(kasan_strings),
20762076
KUNIT_CASE(kasan_bitops_generic),
20772077
KUNIT_CASE(kasan_bitops_tags),
2078-
KUNIT_CASE(kasan_atomics),
2078+
KUNIT_CASE_SLOW(kasan_atomics),
20792079
KUNIT_CASE(vmalloc_helpers_tags),
20802080
KUNIT_CASE(vmalloc_oob),
20812081
KUNIT_CASE(vmap_tags),

0 commit comments

Comments
 (0)