Skip to content

Commit

Permalink
Disable the cmsg test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Feb 4, 2019
1 parent ab48916 commit 4a7d118
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ extern crate ctest;

use std::env;

#[cfg(unix)]
fn do_cc() {
cc::Build::new()
.file("src/cmsg.c")
.compile("cmsg");
}
#[cfg(not(unix))]
fn do_cc() {
}

fn do_ctest() {
let target = env::var("TARGET").unwrap();
Expand Down
5 changes: 5 additions & 0 deletions libc-test/test/cmsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

extern crate libc;

#[cfg(unix)]
mod t {

use libc::{c_uchar, c_uint, c_void, cmsghdr, msghdr};
use std::mem;

Expand Down Expand Up @@ -92,3 +95,5 @@ fn test_cmsg_space() {
}
}
}

}

0 comments on commit 4a7d118

Please sign in to comment.