about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorJeremy Soller <jackpot51@gmail.com>2016-12-15 08:23:33 -0700
committerJeremy Soller <jackpot51@gmail.com>2016-12-15 16:31:01 -0700
commit3e7543a16ec6450b8fe0c3d50bc341b5f143cc54 (patch)
tree6045720352a5a4eaa69986b07fe6459e19c26022 /src/libtest
parentf86e01462781705798adaccbcc3dceb0ecff239b (diff)
downloadrust-3e7543a16ec6450b8fe0c3d50bc341b5f143cc54.tar.gz
rust-3e7543a16ec6450b8fe0c3d50bc341b5f143cc54.zip
WIP: Cross-compilation for Redox target
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index f5546b6aac4..82acbf93488 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -914,6 +914,11 @@ fn use_color(opts: &TestOpts) -> bool {
     }
 }
 
+#[cfg(target_os = "redox")]
+fn stdout_isatty() -> bool {
+    // FIXME: Implement isatty on Redox
+    false
+}
 #[cfg(unix)]
 fn stdout_isatty() -> bool {
     unsafe { libc::isatty(libc::STDOUT_FILENO) != 0 }
@@ -1103,6 +1108,12 @@ fn get_concurrency() -> usize {
         }
     }
 
+    #[cfg(target_os = "redox")]
+    fn num_cpus() -> usize {
+        // FIXME: Implement num_cpus on Redox
+        1
+    }
+
     #[cfg(any(target_os = "linux",
               target_os = "macos",
               target_os = "ios",