video format:: disable sorting test with gst < 1.18

This test relies on a 1.18 specific fix
( 8e3c4a5d5a )
and is meant to check that future updates won't break the ordering.
This commit is contained in:
Guillaume Desmottes 2020-06-24 09:58:47 +02:00
parent 07e786b44f
commit ac47c7bc1d

View file

@ -432,7 +432,6 @@ where
#[cfg(test)]
mod tests {
use gst;
use itertools::Itertools;
#[test]
fn test_display() {
@ -490,8 +489,11 @@ mod tests {
assert_eq!(caps.to_string(), "video/x-raw, format=(string){ NV12, NV16 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]");
}
#[cfg(feature = "v1_18")]
#[test]
fn sort() {
use itertools::Itertools;
gst::init().unwrap();
assert!(