u-ignoretest-ppc64el
authorRust Maintainers <pkg-rust-maintainers@lists.alioth.debian.org>
Thu, 31 May 2018 16:25:17 +0000 (17:25 +0100)
committerXimin Luo <infinity0@debian.org>
Thu, 31 May 2018 16:25:17 +0000 (17:25 +0100)
Gbp-Pq: Name u-ignoretest-ppc64el.patch

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

index 72fa3148fe54aba3563439947fb212864f3d7e3f..e27c80520ac47d267a11643c44120cb9a8d769d8 100644 (file)
@@ -585,6 +585,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 99479bc56eff30ed9388c04d14168ed90174f331..d316676c0c8adbda528c56161ec9ea0db14c077b 100644 (file)
@@ -442,7 +442,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 thread;
 
     struct Foo(Sender<()>);
@@ -454,9 +454,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);