[Linux-kernel-mentees] [RFC v3 2/2] fs: ext4: Modify inode-test.c to use KUnit parameterized testing

Iurii Zaikin yzaikin at google.com
Mon Oct 12 16:53:18 UTC 2020

Thanks for modernizing the test!

> >> +#define NUMBER_OF_TESTCASES 16
If you move the test case array outside the function body, you won't
need this because you'll be able to use ARRAY_SIZE.
Although it could be argued that the get_test_case_parameters
interface should provide the array length to go with the array itself.

> >> +struct timestamp_expectation *get_test_parameters(void)

More information about the Linux-kernel-mentees mailing list