Zhiyi Zhang (@zhiyi) commented about dlls/gdi32/tests/driver.c:
test_D3DKMTCheckOcclusion(); test_D3DKMTOpenAdapterFromDeviceName(); test_D3DKMTQueryVideoMemoryInfo(); + winetest_push_context("GUID_DEVINTERFACE_DISPLAY_ADAPTER"); + test_gpu_device_properties(&GUID_DEVINTERFACE_DISPLAY_ADAPTER); + winetest_pop_context(); + winetest_push_context("GUID_DISPLAY_DEVICE_ARRIVAL"); + test_gpu_device_properties(&GUID_DISPLAY_DEVICE_ARRIVAL); + winetest_pop_context();
Personally, I prefer you use only one function here because it's cleaner. For example, test_gpu_device_properties(), and then in test_gpu_device_properties() you call something like test_gpu_device_properties_guid() for subtests. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2449#note_27481