From: Rae Moar Date: Tue, 25 Jul 2023 21:25:18 +0000 (+0000) Subject: kunit: time: Mark test as slow using test attributes X-Git-Tag: v6.6-rc1~176^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a547c4ce10bde42d4e9ea63d1155970fbfd77db2;p=thirdparty%2Fkernel%2Flinux.git kunit: time: Mark test as slow using test attributes Mark the time KUnit test, time64_to_tm_test_date_range, as slow using test attributes. This test ran relatively much slower than most other KUnit tests. By marking this test as slow, the test can now be filtered using the KUnit test attribute filtering feature. Example: --filter "speed>slow". This will run only the tests that have speeds faster than slow. The slow attribute will also be outputted in KTAP. Reviewed-by: David Gow Signed-off-by: Rae Moar Signed-off-by: Shuah Khan --- diff --git a/kernel/time/time_test.c b/kernel/time/time_test.c index 831e8e779acef..ca058c8af6baf 100644 --- a/kernel/time/time_test.c +++ b/kernel/time/time_test.c @@ -86,7 +86,7 @@ static void time64_to_tm_test_date_range(struct kunit *test) } static struct kunit_case time_test_cases[] = { - KUNIT_CASE(time64_to_tm_test_date_range), + KUNIT_CASE_SLOW(time64_to_tm_test_date_range), {} };