u-ignoretest-ppc64el
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Mon, 1 Jan 2018 13:27:19 +0000 (13:27 +0000)
committerXimin Luo <infinity0@debian.org>
Mon, 1 Jan 2018 13:27:19 +0000 (13:27 +0000)
Gbp-Pq: Name u-ignoretest-ppc64el.patch

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

index 2be7b1bc2e17c8572c247de67744cb432ea4a1d9..006c94d06515315b5dd37efce6fb301d05a02552 100644 (file)
@@ -570,6 +570,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 a53c76a333a99dbc576ec72411c5da6433ea3df1..b068206e1256a97b35f2e0027c1d5f23d510c8ff 100644 (file)
@@ -531,7 +531,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;
 
@@ -544,9 +544,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);