rt test: the stencil export test matches the translator's refusal in Error::Translation's fields

afd9686408 was written against Error::Translation's tuple form; 2c5573d598 made the variant a
struct of the error and the functions, so the device-cfg test no longer compiled under --cfg
m2v_gpu or m2v_cpu_icd. It now matches the refusal in the error field and ignores the functions.
This commit is contained in:
Anees Iqbal committed 2026-11-20 22:50:36 -08:00
1 parent df0ed4188e
commit c2bbfed628
1 file changed
+7 -1
@@ -56,7 +56,13 @@ mod on_device {
(true, Ok(state)) => state,
(true, Err(error)) => panic!("{name}: {error}"),
(false, Ok(_)) => panic!("{name}: a state made without the export"),
(false, Err(Error::Translation(metal2vulkan::error::Error::Unsupported(u)))) => {
(
false,
Err(Error::Translation {
error: metal2vulkan::error::Error::Unsupported(u),
..
}),
) => {
assert_eq!(u.feature, Feature::StencilExport, "{name}: {u:?}");
println!("{name}: no stencil export listed; refused naming StencilExport");
return;