aboutsummaryrefslogtreecommitdiff
path: root/patches/disable_panic_tests_on_android.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/disable_panic_tests_on_android.patch')
-rw-r--r--patches/disable_panic_tests_on_android.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/disable_panic_tests_on_android.patch b/patches/disable_panic_tests_on_android.patch
new file mode 100644
index 0000000..4333952
--- /dev/null
+++ b/patches/disable_panic_tests_on_android.patch
@@ -0,0 +1,13 @@
+diff --git a/tests/slab.rs b/tests/slab.rs
+index c1570fa..8ba3064 100644
+--- a/tests/slab.rs
++++ b/tests/slab.rs
+@@ -580,6 +580,8 @@ fn compact_doesnt_move_if_closure_errors() {
+ }
+
+ #[test]
++// Android aborts on panic and this test relies on stack unwinding.
++#[cfg(not(target_os = "android"))]
+ fn compact_handles_closure_panic() {
+ let mut slab = Slab::new();
+ for i in 0..10 {