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:
Alex Bennée 2025-09-10 11:24:01 +01:00 committed by Manos Pitsidianakis
parent ac27ba3856
commit e6caab8bb0

View File

@ -1099,11 +1099,13 @@ impl VirtioGpu for RutabagaVirtioGpu {
#[cfg(test)]
mod tests {
use std::{
env::set_var,
os::unix::net::UnixStream,
sync::{Arc, Mutex},
};
#[cfg(feature = "gfxstream")]
use std::env::set_var;
use assert_matches::assert_matches;
use rusty_fork::rusty_fork_test;
use rutabaga_gfx::{