element: add feature gate for test_call_async

Fixes https://github.com/sdroege/gstreamer-rs/pull/92
This commit is contained in:
François Laignel 2018-03-16 16:04:35 +01:00 committed by Sebastian Dröge
parent 11c974a55e
commit 93442e94dd

View file

@ -1089,6 +1089,7 @@ macro_rules! gst_element_info(
mod tests { mod tests {
use super::*; use super::*;
use prelude::*; use prelude::*;
#[cfg(feature = "v1_10")]
use std::sync::mpsc::channel; use std::sync::mpsc::channel;
#[test] #[test]
@ -1122,6 +1123,7 @@ mod tests {
assert_eq!(pad_names, vec![String::from("src")]); assert_eq!(pad_names, vec![String::from("src")]);
} }
#[cfg(feature = "v1_10")]
#[test] #[test]
fn test_call_async() { fn test_call_async() {
::init().unwrap(); ::init().unwrap();