Skip to content

Commit a547c4c

Browse files
rmr167shuahkh
authored andcommitted
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 <[email protected]> Signed-off-by: Rae Moar <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent d055c6a commit a547c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/time_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void time64_to_tm_test_date_range(struct kunit *test)
8686
}
8787

8888
static struct kunit_case time_test_cases[] = {
89-
KUNIT_CASE(time64_to_tm_test_date_range),
89+
KUNIT_CASE_SLOW(time64_to_tm_test_date_range),
9090
{}
9191
};
9292

0 commit comments

Comments
 (0)