gst: fix serde test for ObjectFlags::all()

GStreamer 1.24 added `GST_OBJECT_FLAG_CONSTRUCTED`, so `ObjectFlags::all()`
returns a different set depending on the version feature.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1590>
This commit is contained in:
François Laignel 2024-11-13 13:32:19 +01:00
parent 87cfa2f959
commit ae0283f154

View file

@ -188,7 +188,13 @@ mod tests {
) )
); );
check_serialize!(crate::MetaFlags::all(), "\"readonly+pooled+locked\""); check_serialize!(crate::MetaFlags::all(), "\"readonly+pooled+locked\"");
check_serialize!(crate::ObjectFlags::all(), "\"may-be-leaked+constructed\""); cfg_if::cfg_if! {
if #[cfg(feature = "v1_24")] {
check_serialize!(crate::ObjectFlags::all(), "\"may-be-leaked+constructed\"");
} else {
check_serialize!(crate::ObjectFlags::all(), "\"may-be-leaked\"");
}
}
check_serialize!( check_serialize!(
crate::PadFlags::all(), crate::PadFlags::all(),
concat!( concat!(