summaryrefslogtreecommitdiff
path: root/kernel/time
diff options
context:
space:
mode:
authorRae Moar <rmoar@google.com>2023-07-25 21:25:18 +0000
committerShuah Khan <skhan@linuxfoundation.org>2023-07-26 13:29:35 -0600
commita547c4ce10bde42d4e9ea63d1155970fbfd77db2 (patch)
tree1253afe01a09eda84e7d505857839d5d035e7f7b /kernel/time
parentd055c6a2cc162fa3fe23d0a88a279baf46abe85d (diff)
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 <davidgow@google.com> Signed-off-by: Rae Moar <rmoar@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/time_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/time_test.c b/kernel/time/time_test.c
index 831e8e779ace..ca058c8af6ba 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),
{}
};