mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-05-28 21:28:36 +00:00
log: Use serial_test to avoid conflicts with other tests
This commit is contained in:
parent
490c774718
commit
b8e8f4b7a3
|
@ -40,6 +40,7 @@ ron = "0.8"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
futures-executor = "0.3.1"
|
futures-executor = "0.3.1"
|
||||||
gir-format-check = "0.1"
|
gir-format-check = "0.1"
|
||||||
|
serial_test = "3"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|
|
@ -1298,6 +1298,7 @@ pub fn remove_log_function(log_fn: DebugLogFunction) {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use serial_test::serial;
|
||||||
use std::sync::{mpsc, Arc, Mutex};
|
use std::sync::{mpsc, Arc, Mutex};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
@ -1371,6 +1372,7 @@ mod tests {
|
||||||
});
|
});
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[serial]
|
||||||
#[cfg(feature = "log")]
|
#[cfg(feature = "log")]
|
||||||
fn log_trait() {
|
fn log_trait() {
|
||||||
crate::init().unwrap();
|
crate::init().unwrap();
|
||||||
|
@ -1421,6 +1423,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[serial]
|
||||||
fn log_handler() {
|
fn log_handler() {
|
||||||
crate::init().unwrap();
|
crate::init().unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue