diff options
author | Maíra Canal <mcanal@igalia.com> | 2022-10-02 01:34:22 +0300 |
---|---|---|
committer | Maíra Canal <mairacanal@riseup.net> | 2022-10-16 20:47:53 +0300 |
commit | 530f789766996c9298c02ac8b59cee6934322c6b (patch) | |
tree | 8db6e36468a6f2bce3d47c12b7f20fe4d0415eb8 /drivers/hwmon/intel-m10-bmc-hwmon.c | |
parent | d32f7960fb9370b9756f1668a7093a7afdaef72c (diff) | |
download | linux-530f789766996c9298c02ac8b59cee6934322c6b.tar.xz |
drm/tests: Split drm_test_dp_mst_sideband_msg_req_decode into parameterized tests
The drm_test_dp_mst_sideband_msg_req_decode repeats the same test
structure with different parameters. This could be better represented
by parameterized tests, provided by KUnit.
In addition to the parameterization of the tests, the test case for the
client ID was changed: instead of using get_random_bytes to generate
the client ID, the client ID is now hardcoded in the test case. This
doesn't affect the assertively of the tests, as this test case only compare
the data going in with the data going out and it doesn't transform the data
itself in any way.
So, convert drm_test_dp_mst_sideband_msg_req_decode into parameterized
tests and make the tests' allocations and prints completely managed by KUnit.
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20221001223422.857505-2-mcanal@igalia.com
Diffstat (limited to 'drivers/hwmon/intel-m10-bmc-hwmon.c')
0 files changed, 0 insertions, 0 deletions