Re: [PATCH] kunit: fix display of failed expectations for strings

2020-11-05 Thread Brendan Higgins
On Mon, Nov 2, 2020 at 3:23 PM Daniel Latypov wrote: > > Currently the following expectation > KUNIT_EXPECT_STREQ(test, "hi", "bye"); > will produce: > Expected "hi" == "bye", but > "hi" == 1625079497 > "bye" == 1625079500 > > After this patch: > Expected "hi" == "bye", but >

[PATCH] kunit: fix display of failed expectations for strings

2020-11-02 Thread Daniel Latypov
Currently the following expectation KUNIT_EXPECT_STREQ(test, "hi", "bye"); will produce: Expected "hi" == "bye", but "hi" == 1625079497 "bye" == 1625079500 After this patch: Expected "hi" == "bye", but "hi" == hi "bye" == bye KUNIT_INIT_BINARY_STR_ASSERT_STRUCT()