vhost-device-gpu: gate env::set_var test usage
Only used with gfxstream tests. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
ac27ba3856
commit
e6caab8bb0
1 changed files with 3 additions and 1 deletions
|
|
@ -1099,11 +1099,13 @@ impl VirtioGpu for RutabagaVirtioGpu {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use std::{
|
use std::{
|
||||||
env::set_var,
|
|
||||||
os::unix::net::UnixStream,
|
os::unix::net::UnixStream,
|
||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(feature = "gfxstream")]
|
||||||
|
use std::env::set_var;
|
||||||
|
|
||||||
use assert_matches::assert_matches;
|
use assert_matches::assert_matches;
|
||||||
use rusty_fork::rusty_fork_test;
|
use rusty_fork::rusty_fork_test;
|
||||||
use rutabaga_gfx::{
|
use rutabaga_gfx::{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue