diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2023-05-17 14:18:16 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-05-26 17:44:09 +0300 |
commit | b1eaa8b2a55c9d5d22f5d2929f4d9973d6392241 (patch) | |
tree | a39a40abf47df5580b78ceba35f6b520f18967a7 /lib/memregion.c | |
parent | b08f75b9bb0196a626a804e76970733f0a05de94 (diff) | |
download | linux-b1eaa8b2a55c9d5d22f5d2929f4d9973d6392241.tar.xz |
kunit: Update kunit_print_ok_not_ok function
There is no need use opaque test_or_suite pointer and is_test flag
as we don't use anything from the suite struct. Always expect test
pointer and use NULL as indication that provided results are from
the suite so we can treat them differently.
Since results could be from nested tests, like parameterized tests,
add explicit level parameter to properly indent output messages and
thus allow to reuse this function from other places.
While around, remove small code duplication near skip directive.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: David Gow <davidgow@google.com>
Cc: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/memregion.c')
0 files changed, 0 insertions, 0 deletions