Skip to content

Commit

Permalink
mac should also have Xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Dec 6, 2024
1 parent 49534a9 commit 7d07df0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ use std::process::Command;

#[test]
fn main() {
// setup xephyr
#[cfg(target_os = "linux")]
// setup xvfb
let mut cmd = Command::new("Xvfb").arg(":1").spawn().unwrap();

#[cfg(not(target_os = "linux"))]
let mut cmd = Command::new("xvfb").arg(":1").spawn().unwrap();

// wait for xephyr to start
let mut dpy = unsafe { xlib::XOpenDisplay(c":1.0".as_ptr()) };
while dpy.is_null() {
Expand Down

0 comments on commit 7d07df0

Please sign in to comment.