Skip to content

Commit 7d07df0

Browse files
committed
mac should also have Xvfb
1 parent 49534a9 commit 7d07df0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/tests.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,9 @@ use std::process::Command;
77

88
#[test]
99
fn main() {
10-
// setup xephyr
11-
#[cfg(target_os = "linux")]
10+
// setup xvfb
1211
let mut cmd = Command::new("Xvfb").arg(":1").spawn().unwrap();
1312

14-
#[cfg(not(target_os = "linux"))]
15-
let mut cmd = Command::new("xvfb").arg(":1").spawn().unwrap();
16-
1713
// wait for xephyr to start
1814
let mut dpy = unsafe { xlib::XOpenDisplay(c":1.0".as_ptr()) };
1915
while dpy.is_null() {

0 commit comments

Comments
 (0)