diff options
author | Daniel Latypov | 2021-04-02 12:33:57 -0700 |
---|---|---|
committer | Shuah Khan | 2021-04-02 14:14:16 -0600 |
commit | acd976253c0ce98e92c766bd720bb00e4c2facb6 (patch) | |
tree | c97d398a80aa9f84c50616617b59b8f2782d9404 /crypto/gcm.c | |
parent | 2f9f21cdcd71d0c523676f551ea5c4f78d8e6f61 (diff) |
kunit: make KUNIT_EXPECT_STREQ() quote values, don't print literals
Before:
> Expected str == "world", but
> str == hello
> "world" == world
After:
> Expected str == "world", but
> str == "hello"
<we don't need to tell the user that "world" == "world">
Note: like the literal ellision for integers, this doesn't handle the
case of
KUNIT_EXPECT_STREQ(test, "hello", "world")
since we don't expect it to realistically happen in checked in tests.
(If you really wanted a test to fail, KUNIT_FAIL("msg") exists)
In that case, you'd get:
> Expected "hello" == "world", but
<output for next failure>
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions