Make tests build on CloudABI.

There are some tests that need to be disabled on CloudABI specifically,
due to the fact that the shims cannot be built in combination with
unix::ext or windows::ext. Also improve the scoping of some imports to
suppress compiler warnings.
This commit is contained in:
Ed Schouten
2018-01-11 11:20:50 +01:00
parent d882bb516e
commit d9d97c9f09
5 changed files with 13 additions and 6 deletions

View File

@@ -885,7 +885,7 @@ impl fmt::Debug for TcpListener {
}
}
#[cfg(all(test, not(target_os = "emscripten")))]
#[cfg(all(test, not(any(target_os = "cloudabi", target_os = "emscripten"))))]
mod tests {
use io::ErrorKind;
use io::prelude::*;