drm/cmdline-parser: Merge negative tests
authorMichał Winiarski <michal.winiarski@intel.com>
Wed, 17 Aug 2022 21:12:35 +0000 (23:12 +0200)
committerMaíra Canal <mairacanal@riseup.net>
Thu, 1 Sep 2022 11:45:24 +0000 (08:45 -0300)
commit0af02a0e52030ca0b5acc4da6d3ee3303077277c
treea8c641db0a0fd0a50494b145258048a0a21a37b3
parent0538fa09bb1073b19b197509c51c55496091d125
drm/cmdline-parser: Merge negative tests

Negative tests can be expressed as a single parameterized test case,
which highlights that we're following the same test logic (passing
invalid cmdline and expecting drm_mode_parse_command_line_for_connector
to fail), which improves readability.

v2: s/negative/invalid to be consistent with other testcases in DRM

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20220817211236.252091-1-michal.winiarski@intel.com
drivers/gpu/drm/tests/drm_cmdline_parser_test.c