u-ignoretest-ppc64el
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Sun, 15 Oct 2017 21:30:35 +0000 (22:30 +0100)
committerXimin Luo <infinity0@debian.org>
Sun, 15 Oct 2017 21:30:35 +0000 (22:30 +0100)
Gbp-Pq: Name u-ignoretest-ppc64el.patch

src/libarena/lib.rs
src/libstd/thread/local.rs

index 8e3b3f2074da953386ddfa2f7b789189c9942856..36295b5ad70d801344dac5803c4debefaee44d62 100644 (file)
@@ -574,6 +574,9 @@ mod tests {
 
     #[test]
     fn test_typed_arena_drop_small_count() {
+        if cfg!(target_arch = "powerpc64") {
+            return;
+        }
         DROP_COUNTER.with(|c| c.set(0));
         {
             let arena: TypedArena<SmallDroppable> = TypedArena::new();
index be433e2b81e6b6758ea886803254488d88484718..5c59c60b18ba7ecfbf0f163e69c0237ded87f326 100644 (file)
@@ -587,7 +587,7 @@ pub mod os {
 #[cfg(all(test, not(target_os = "emscripten")))]
 mod tests {
     use sync::mpsc::{channel, Sender};
-    use cell::{Cell, UnsafeCell};
+    use cell::UnsafeCell;
     use super::LocalKeyState;
     use thread;
 
@@ -600,9 +600,9 @@ mod tests {
         }
     }
 
-    #[test]
+    #[test] #[cfg(not(target_arch = "powerpc64"))]
     fn smoke_no_dtor() {
-        thread_local!(static FOO: Cell<i32> = Cell::new(1));
+        thread_local!(static FOO: ::cell::Cell<i32> = ::cell::Cell::new(1));
 
         FOO.with(|f| {
             assert_eq!(f.get(), 1);