]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: rename print_subtest_{start,end} for clarity (s/subtest/suite)
authorDaniel Latypov <dlatypov@google.com>
Fri, 29 Apr 2022 18:12:56 +0000 (11:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 2 May 2022 18:35:39 +0000 (12:35 -0600)
commit9a666d78117af731056246fe142acd38ce398bb2
tree1af3aa0e009d1116c9cf303107f60e759d453137
parentcac51352318df9c10cae6f619c52f699499295a7
kunit: rename print_subtest_{start,end} for clarity (s/subtest/suite)

These names sound more general than they are.

The _end() function increments a `static int kunit_suite_counter`, so it
can only safely be called on suites, aka top-level subtests.
It would need to have a separate counter for each level of subtest to be
generic enough.

So rename it to make it clear it's only appropriate for suites.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/test.c