gstreamer-video: new test failure on big-endian architectures with v0.21.1
I get a strange test failure building gstreamer-rs v0.21.1 for Fedora - tests pass on all architectures, except for s390x (our only supported big-endian architecture). From the build log:
failures:
---- video_format::tests::sort stdout ----
thread 'video_format::tests::sort' panicked at src/video_format.rs:544:9:
assertion `left == right` failed
left: [Ayuv64, Argb64, Gbra12be, Gbra12le, A44410be, Gbra10be, A44410le, Gbra10le, A42210be, A42210le, A42010be, A42010le, Gbra, Ayuv, Rgba, Argb, Bgra, Abgr, A420, V216, Y44412be, Gbr12be, Y44412le, Gbr12le, I42212be, I42212le, I42012be, I42012le, Y44410be, Gbr10be, Y44410le, Gbr10le, R210, I42210be, I42210le, Nv1610le32, Uyvp, V210, I42010be, I42010le, P01010be, P01010le, Nv1210le32, Y444, Gbr, Nv24, V308, Iyu2, Rgbx, Xrgb, Bgrx, Xbgr, Rgb, Bgr, Y42b, Nv16, Nv61, Yuy2, Yvyu, Uyvy, Vyuy, I420, Yv12, Nv12, Nv21, Nv1264z32, Y41b, Iyu1, Yuv9, Yvu9, Bgr16, Rgb16, Bgr15, Rgb15, Rgb8p, Gray16Be, Gray16Le, Gray10Le32, Gray8]
right: [Ayuv64, Argb64, Gbra12be, Gbra12le, A44410be, Gbra10be, A44410le, Gbra10le, A42210be, A42210le, A42010be, A42010le, Gbra, Ayuv, Rgba, Argb, Bgra, Abgr, A420, V216, Y44412be, Gbr12be, Y44412le, Gbr12le, I42212be, I42212le, I42012be, I42012le, Y44410be, Gbr10be, Y44410le, Gbr10le, R210, I42210be, I42210le, Nv1610le32, Uyvp, V210, I42010be, I42010le, P01010be, Nv1210le32, P01010le, Y444, Gbr, Nv24, V308, Iyu2, Rgbx, Xrgb, Bgrx, Xbgr, Rgb, Bgr, Y42b, Nv16, Nv61, Yuy2, Yvyu, Uyvy, Vyuy, I420, Yv12, Nv12, Nv21, Nv1264z32, Y41b, Iyu1, Yuv9, Yvu9, Bgr16, Rgb16, Bgr15, Rgb15, Rgb8p, Gray16Be, Gray16Le, Gray10Le32, Gray8]
failures:
video_format::tests::sort
test result: FAILED. 25 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s
error: test failed, to rerun pass `--lib`
The lists are identical except two adjacent elements that are swapped: P01010le, Nv1210le32
vs. Nv1210le32, P01010le
It appears that this code has recently changed? 635b3161