KhronosGroup / Vulkan-ValidationLayers

Vulkan Validation Layers (VVL)
https://vulkan.lunarg.com/doc/sdk/latest/linux/khronos_validation_layer.html
Other
751 stars 403 forks source link

Allow smarter error message checking for tests #8140

Closed spencer-lunarg closed 3 months ago

spencer-lunarg commented 3 months ago

Currently for GPU-AV, it would be nice to have a way for it to make sure we test the error message is good

My advice is to always have the VUID (so we know where the test coverage is for any VUID) so it could look like

m_errorMonitor->SetDesiredError("VUID-xxx", "regex to error message");

this can be done easily because in DebugCallback() we can just do the VUID matching in VkDebugUtilsMessengerCallbackDataEXT::pMessageIdName and the rest would be for the error message