diff options
author | ThiƩbaud Weksteen <tweek@google.com> | 2021-01-27 16:10:52 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-01-27 16:10:52 +0000 |
commit | 19a987a12ab27ffe6f687193a59ddecf69728ea1 (patch) | |
tree | 7b285536286fd3c7d0fd3839171c68b5cec7573a | |
parent | b470646293718ecf86bdf80032200513e5b1a785 (diff) | |
parent | b8bd545785ac5792e4df03005edb0649a5b7b64a (diff) | |
download | spin-19a987a12ab27ffe6f687193a59ddecf69728ea1.tar.gz |
Disable tests relying on unwinder am: 80d30c6eaf am: b8bd545785
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/spin/+/1561877
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ifa98267f52bed2d928125e42f769d57b87bebde9
-rw-r--r-- | patches/disable_panic_tests.patch | 48 | ||||
-rw-r--r-- | src/mutex/spin.rs | 1 | ||||
-rw-r--r-- | src/mutex/ticket.rs | 1 | ||||
-rw-r--r-- | src/once.rs | 1 | ||||
-rw-r--r-- | src/rw_lock.rs | 1 |
5 files changed, 52 insertions, 0 deletions
diff --git a/patches/disable_panic_tests.patch b/patches/disable_panic_tests.patch new file mode 100644 index 0000000..658ee32 --- /dev/null +++ b/patches/disable_panic_tests.patch @@ -0,0 +1,48 @@ +diff --git a/src/mutex/spin.rs b/src/mutex/spin.rs +index 60be1e8..36d65fd 100644 +--- a/src/mutex/spin.rs ++++ b/src/mutex/spin.rs +@@ -432,6 +432,7 @@ mod tests { + } + + #[test] ++ #[ignore = "Android uses panic_abort"] + fn test_mutex_arc_access_in_unwind() { + let arc = Arc::new(SpinMutex::new(1)); + let arc2 = arc.clone(); +diff --git a/src/mutex/ticket.rs b/src/mutex/ticket.rs +index df36e95..4186fb8 100644 +--- a/src/mutex/ticket.rs ++++ b/src/mutex/ticket.rs +@@ -428,6 +428,7 @@ mod tests { + } + + #[test] ++ #[ignore = "Android uses panic_abort"] + fn test_mutex_arc_access_in_unwind() { + let arc = Arc::new(TicketMutex::new(1)); + let arc2 = arc.clone(); +diff --git a/src/once.rs b/src/once.rs +index 5d4b451..ad60405 100644 +--- a/src/once.rs ++++ b/src/once.rs +@@ -384,6 +384,7 @@ mod tests { + } + + #[test] ++ #[ignore = "Android uses panic_abort"] + fn panic() { + use ::std::panic; + +diff --git a/src/rw_lock.rs b/src/rw_lock.rs +index 5c009cf..ed50407 100644 +--- a/src/rw_lock.rs ++++ b/src/rw_lock.rs +@@ -932,6 +932,7 @@ mod tests { + } + + #[test] ++ #[ignore = "Android uses panic_abort"] + fn test_rw_access_in_unwind() { + let arc = Arc::new(RwLock::new(1)); + let arc2 = arc.clone(); diff --git a/src/mutex/spin.rs b/src/mutex/spin.rs index 60be1e8..36d65fd 100644 --- a/src/mutex/spin.rs +++ b/src/mutex/spin.rs @@ -432,6 +432,7 @@ mod tests { } #[test] + #[ignore = "Android uses panic_abort"] fn test_mutex_arc_access_in_unwind() { let arc = Arc::new(SpinMutex::new(1)); let arc2 = arc.clone(); diff --git a/src/mutex/ticket.rs b/src/mutex/ticket.rs index df36e95..4186fb8 100644 --- a/src/mutex/ticket.rs +++ b/src/mutex/ticket.rs @@ -428,6 +428,7 @@ mod tests { } #[test] + #[ignore = "Android uses panic_abort"] fn test_mutex_arc_access_in_unwind() { let arc = Arc::new(TicketMutex::new(1)); let arc2 = arc.clone(); diff --git a/src/once.rs b/src/once.rs index 5d4b451..ad60405 100644 --- a/src/once.rs +++ b/src/once.rs @@ -384,6 +384,7 @@ mod tests { } #[test] + #[ignore = "Android uses panic_abort"] fn panic() { use ::std::panic; diff --git a/src/rw_lock.rs b/src/rw_lock.rs index 5c009cf..ed50407 100644 --- a/src/rw_lock.rs +++ b/src/rw_lock.rs @@ -932,6 +932,7 @@ mod tests { } #[test] + #[ignore = "Android uses panic_abort"] fn test_rw_access_in_unwind() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); |