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

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

index 4338ac7fd022c362f1065147fad6ecc8eb445b67..51a9421bec14e44b45f225b2f52a589a2188246c 100644 (file)
@@ -576,6 +576,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 c2c6e6cf87dff4ad71fcde7e8f721f342ef3d37c..61556d1a7102ab73b986590ee4236de339864c7b 100644 (file)
@@ -410,7 +410,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;
 
@@ -423,9 +423,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);