summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-09-10 20:19:44 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-09-10 20:19:44 -0700
commite8606192d80fb82cabf2b89cac19e77ab73238db (patch)
tree7fb5be6de9ffcefce929c2daafcec1a5a8146558 /libc-test
parent2237882ddc57f426d4e84137de68cf128a31e6c7 (diff)
downloadrust-libc-e8606192d80fb82cabf2b89cac19e77ab73238db.tar.gz
Get OSX tests compiling
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs4
-rw-r--r--libc-test/tests/all.rs3
2 files changed, 6 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 4b64473b92..54f5a9fbcd 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -64,6 +64,7 @@ impl<'a> TestGenerator<'a> {
]);
if self.target.contains("apple-darwin") {
+ base.push("mach-o/dyld.h");
base.push("mach/mach_time.h");
}
@@ -90,11 +91,13 @@ impl<'a> TestGenerator<'a> {
base.push("pthread.h");
base.push("signal.h");
base.push("stdalign.h");
+ base.push("string.h");
base.push("sys/file.h");
base.push("sys/ioctl.h");
base.push("sys/mman.h");
base.push("sys/resource.h");
base.push("sys/socket.h");
+ base.push("sys/sysctl.h");
base.push("sys/time.h");
base.push("sys/un.h");
base.push("sys/wait.h");
@@ -385,6 +388,7 @@ impl<'a> TestGenerator<'a> {
"glob" |
"getrlimit" |
"setrlimit" |
+ "signal" |
"getopt" => return,
_ => {}
}
diff --git a/libc-test/tests/all.rs b/libc-test/tests/all.rs
index 298a3c9a9a..7fb6efb7e2 100644
--- a/libc-test/tests/all.rs
+++ b/libc-test/tests/all.rs
@@ -1,4 +1,4 @@
-#![allow(bad_style)]
+#![allow(bad_style, unused_imports)]
extern crate libc;
extern crate libc_test;
@@ -13,6 +13,7 @@ use libc::*;
#[cfg(unix)] use libc::funcs::posix01::glob::*;
#[cfg(unix)] use libc::funcs::posix01::signal::*;
#[cfg(unix)] use libc::funcs::posix88::signal::*;
+#[cfg(target_os = "macos")] use libc::funcs::extra::*;
trait Pretty {
fn pretty(&self) -> String;