about summary refs log tree commit diff
path: root/src/libstd/time
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-13 14:17:33 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-24 16:24:52 -0700
commit8ef3f69ffb03f8b5c83c44a6300bdfc8f73f6296 (patch)
tree657b27713b42c8daee9e8cf62df8ad9be4b7720f /src/libstd/time
parentb80e946101dd49dd1864b6229f9430c55036c7ce (diff)
downloadrust-8ef3f69ffb03f8b5c83c44a6300bdfc8f73f6296.tar.gz
rust-8ef3f69ffb03f8b5c83c44a6300bdfc8f73f6296.zip
Add a disabled builder for aarch64 emulated tests
This commit adds a disabled builder which will run all tests for the standard
library for aarch64 in a QEMU instance. Once we get enough capacity to run this
on Travis this can be used to boost our platform coverage of AArch64
Diffstat (limited to 'src/libstd/time')
-rw-r--r--src/libstd/time/mod.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libstd/time/mod.rs b/src/libstd/time/mod.rs
index 4eed336a7a0..40113d164df 100644
--- a/src/libstd/time/mod.rs
+++ b/src/libstd/time/mod.rs
@@ -533,9 +533,17 @@ mod tests {
         assert!(b > a);
         assert_eq!(b - a, Duration::new(1, 0));
 
-        // let's assume that we're all running computers later than 2000
         let thirty_years = Duration::new(1, 0) * 60 * 60 * 24 * 365 * 30;
-        assert!(a > thirty_years);
+
+        // Right now for CI this test is run in an emulator, and apparently the
+        // aarch64 emulator's sense of time is that we're still living in the
+        // 70s.
+        //
+        // Otherwise let's assume that we're all running computers later than
+        // 2000.
+        if !cfg!(target_arch = "aarch64") {
+            assert!(a > thirty_years);
+        }
 
         // let's assume that we're all running computers earlier than 2090.
         // Should give us ~70 years to fix this!