u-ignoretest-ppc64el
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Tue, 25 Jul 2017 21:19:47 +0000 (22:19 +0100)
committerXimin Luo <infinity0@debian.org>
Tue, 25 Jul 2017 21:19:47 +0000 (22:19 +0100)
Gbp-Pq: Name u-ignoretest-ppc64el.patch

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

index a3cfc15895eb73cfb4dae3108482efd378eed447..40ca7d4909eacdfe6972b03869bf44366576adf3 100644 (file)
@@ -579,6 +579,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 e2b22b1d89f045496e267eed902d2b8e3adf2fe4..1bb93408b91d8b6a583fcc6bd449b4f052c528b8 100644 (file)
@@ -395,7 +395,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;
 
@@ -408,9 +408,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);