diff options
-rw-r--r-- | patches/disable_panic_tests.patch | 20 | ||||
-rw-r--r-- | src/lib.rs | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/patches/disable_panic_tests.patch b/patches/disable_panic_tests.patch new file mode 100644 index 0000000..97615cd --- /dev/null +++ b/patches/disable_panic_tests.patch @@ -0,0 +1,20 @@ +diff --git a/src/lib.rs b/src/lib.rs +index d33c2b6..39f5026 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -500,6 +500,7 @@ mod tests { + + #[cfg(feature = "use_std")] + #[test] ++ #[ignore = "Android uses panic_abort"] + fn test_defer_success_2() { + let drops = Cell::new(0); + let _ = catch_unwind(AssertUnwindSafe(|| { +@@ -511,6 +512,7 @@ mod tests { + + #[cfg(feature = "use_std")] + #[test] ++ #[ignore = "Android uses panic_abort"] + fn test_defer_unwind_1() { + let drops = Cell::new(0); + let _ = catch_unwind(AssertUnwindSafe(|| { @@ -500,6 +500,7 @@ mod tests { #[cfg(feature = "use_std")] #[test] + #[ignore = "Android uses panic_abort"] fn test_defer_success_2() { let drops = Cell::new(0); let _ = catch_unwind(AssertUnwindSafe(|| { @@ -511,6 +512,7 @@ mod tests { #[cfg(feature = "use_std")] #[test] + #[ignore = "Android uses panic_abort"] fn test_defer_unwind_1() { let drops = Cell::new(0); let _ = catch_unwind(AssertUnwindSafe(|| { |