diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2023-08-28 11:41:10 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-09-18 10:45:53 -0600 |
commit | 05e2006ce493cb6fb5e5b4b8317f82754dfa2b1e (patch) | |
tree | 9b803c3fccd44fc7f88ff696f6e9a8cdfee3e651 /drivers/pci/controller/dwc/pci-keystone.c | |
parent | d1a0d699bfc00ae5b5e74bb640d791a93e825b68 (diff) |
kunit: Use string_stream for test log
Replace the fixed-size log buffer with a string_stream so that the
log can grow as lines are added.
The existing kunit log tests have been updated for using a
string_stream as the log. No new test have been added because there
are already tests for the underlying string_stream.
As the log tests now depend on string_stream functions they cannot
build when kunit-test is a module. They have been surrounded by
a #if to replace them with skipping version when the test is
build as a module. Though this isn't pretty, it avoids moving
code to another file while that code is also being changed.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions