mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 11:40:20 +01:00
tests/amdgpu: ensure tests work by using c99 initializers
In the latest version of CUnit the fourth parameter of the CU_SuiteInfo struct is pSetUpFunc rather than *pTests. Seems like the CUnit ABI broke at some point, so let's the the robust thing and use c99 designated initializers to correctly populate the struct(s). Cc: Leo Liu <leo.liu@amd.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f756877736
commit
ae2cf4507c
1 changed files with 24 additions and 8 deletions
|
|
@ -58,14 +58,30 @@ int drm_amdgpu[MAX_CARDS_SUPPORTED];
|
||||||
|
|
||||||
/** The table of all known test suites to run */
|
/** The table of all known test suites to run */
|
||||||
static CU_SuiteInfo suites[] = {
|
static CU_SuiteInfo suites[] = {
|
||||||
{ "Basic Tests", suite_basic_tests_init,
|
{
|
||||||
suite_basic_tests_clean, basic_tests },
|
.pName = "Basic Tests",
|
||||||
{ "BO Tests", suite_bo_tests_init,
|
.pInitFunc = suite_basic_tests_init,
|
||||||
suite_bo_tests_clean, bo_tests },
|
.pCleanupFunc = suite_basic_tests_clean,
|
||||||
{ "CS Tests", suite_cs_tests_init,
|
.pTests = basic_tests,
|
||||||
suite_cs_tests_clean, cs_tests },
|
},
|
||||||
{ "VCE Tests", suite_vce_tests_init,
|
{
|
||||||
suite_vce_tests_clean, vce_tests },
|
.pName = "BO Tests",
|
||||||
|
.pInitFunc = suite_bo_tests_init,
|
||||||
|
.pCleanupFunc = suite_bo_tests_clean,
|
||||||
|
.pTests = bo_tests,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.pName = "CS Tests",
|
||||||
|
.pInitFunc = suite_cs_tests_init,
|
||||||
|
.pCleanupFunc = suite_cs_tests_clean,
|
||||||
|
.pTests = cs_tests,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.pName = "VCE Tests",
|
||||||
|
.pInitFunc = suite_vce_tests_init,
|
||||||
|
.pCleanupFunc = suite_vce_tests_clean,
|
||||||
|
.pTests = vce_tests,
|
||||||
|
},
|
||||||
CU_SUITE_INFO_NULL,
|
CU_SUITE_INFO_NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue