• Richard Fitzgerald's avatar
    kunit: Use string_stream for test log · 05e2006c
    Richard Fitzgerald authored
    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: default avatarRichard Fitzgerald <rf@opensource.cirrus.com>
    Reviewed-by: default avatarDavid Gow <davidgow@google.com>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    05e2006c
test.h 53.3 KB