Hi all!
On 27/12/2019 13:39, SeongJae Park wrote: [...]
I have a function returning 'unsigned long', and would like to write a kunit test for the function, as below.
unsigned long foo(void) { return 42; } static void foo_test(struct kunit *test) { KUNIT_EXPECT_EQ(test, 42, foo()); }
For this case: shouldn't ---- snip ---- static void foo_test(struct kunit *test) { KUNIT_EXPECT_EQ(test, 42ul, foo()); } ---- snip ---- do the trick?
MfG, Bernd