Skip to content
Snippets Groups Projects
Commit 41d68fdd authored by Tommie Levy's avatar Tommie Levy
Browse files

skip panic tests when using an assert which aborts

parent 573b77db
Branches bugfixes
No related tags found
No related merge requests found
Pipeline #540 failed
...@@ -365,6 +365,7 @@ mod test { ...@@ -365,6 +365,7 @@ mod test {
} }
#[test] #[test]
#[cfg(not(feature="write"))]
#[should_panic] #[should_panic]
fn test_oob() { fn test_oob() {
let arr = b"lorem"; let arr = b"lorem";
......
...@@ -89,6 +89,7 @@ mod test { ...@@ -89,6 +89,7 @@ mod test {
use super::*; use super::*;
#[test] #[test]
#[cfg(not(feature="write"))]
#[should_panic] #[should_panic]
fn test_panic_oom() { fn test_panic_oom() {
fn panic() -> ! { fn panic() -> ! {
...@@ -101,6 +102,7 @@ mod test { ...@@ -101,6 +102,7 @@ mod test {
#[test] #[test]
#[should_panic] #[should_panic]
#[cfg(not(feature="write"))]
#[cfg(feature = "tls")] #[cfg(feature = "tls")]
fn test_panic_thread_oom() { fn test_panic_thread_oom() {
fn infinite() -> ! { fn infinite() -> ! {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment