vuinputd/vuinputd-tests/tests/integration_tests.rs
2025-12-12 11:10:30 +00:00

14 lines
425 B
Rust

use std::process::Command;
#[cfg(all(feature = "requires-root", feature = "requires-uinput"))]
#[test]
fn test_keyboard_in_container() {
let keyboard_in_container = env!("CARGO_BIN_EXE_keyboard-in-container");
// Run the ns_child helper which unshares namespaces
let status = Command::new(keyboard_in_container)
.status()
.expect("failed to launch ns helper");
assert!(status.success());
}