We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49534a9 commit 7d07df0Copy full SHA for 7d07df0
src/tests.rs
@@ -7,13 +7,9 @@ use std::process::Command;
7
8
#[test]
9
fn main() {
10
- // setup xephyr
11
- #[cfg(target_os = "linux")]
+ // setup xvfb
12
let mut cmd = Command::new("Xvfb").arg(":1").spawn().unwrap();
13
14
- #[cfg(not(target_os = "linux"))]
15
- let mut cmd = Command::new("xvfb").arg(":1").spawn().unwrap();
16
-
17
// wait for xephyr to start
18
let mut dpy = unsafe { xlib::XOpenDisplay(c":1.0".as_ptr()) };
19
while dpy.is_null() {
0 commit comments