summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2017-12-03 13:26:52 -0800
committerBryant Mairs <bryantmairs@google.com>2017-12-05 07:48:38 -0800
commit4013fa48487ea9ae917932488858b95d626c611e (patch)
tree51378718336fb37da7564073e312f12af7516cea /src
parent28d82265aefdcf1cc3ef6effcb96dd5607a3ec94 (diff)
downloadnix-4013fa48487ea9ae917932488858b95d626c611e.zip
Remove nix-test subcrate
This was doing testing for errno constants and a few other types that is no longer necessary now that these types are all tested within the libc project itself.
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs3
-rw-r--r--src/sys/socket/mod.rs6
-rw-r--r--src/sys/uio.rs6
3 files changed, 0 insertions, 15 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f900067c..8ddfad9b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,9 +18,6 @@ extern crate bitflags;
extern crate cfg_if;
extern crate void;
-#[cfg(test)]
-extern crate nix_test as nixtest;
-
#[macro_use] mod macros;
pub extern crate libc;
diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs
index c7d6d581..bd8764b7 100644
--- a/src/sys/socket/mod.rs
+++ b/src/sys/socket/mod.rs
@@ -964,9 +964,3 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
Errno::result(shutdown(df, how)).map(drop)
}
}
-
-#[test]
-pub fn test_struct_sizes() {
- use nixtest;
- nixtest::assert_size_of::<sockaddr_storage>("sockaddr_storage");
-}
diff --git a/src/sys/uio.rs b/src/sys/uio.rs
index cd161423..c785225b 100644
--- a/src/sys/uio.rs
+++ b/src/sys/uio.rs
@@ -169,9 +169,3 @@ impl<'a> IoVec<&'a mut [u8]> {
}, PhantomData)
}
}
-
-#[test]
-pub fn test_size_of_io_vec() {
- use nixtest;
- nixtest::assert_size_of::<IoVec<&[u8]>>("iovec");
-}