a9019d14ae
They're hard to write and read, so put together a little helper to clean up both the code and the gtest output on failure. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6431>