forked from M-Labs/libfringe
Fix should_panic attributes
This commit is contained in:
parent
d07fcea0eb
commit
34ab0dc2cd
@ -81,7 +81,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic="arg=0"]
|
#[should_panic(expected = "arg=0")]
|
||||||
fn panic_after_start() {
|
fn panic_after_start() {
|
||||||
unsafe {
|
unsafe {
|
||||||
let stack = OsStack::new(4 << 20).unwrap();
|
let stack = OsStack::new(4 << 20).unwrap();
|
||||||
@ -92,7 +92,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic="arg=1"]
|
#[should_panic(expected = "arg=1")]
|
||||||
fn panic_after_swap() {
|
fn panic_after_swap() {
|
||||||
unsafe {
|
unsafe {
|
||||||
let stack = OsStack::new(4 << 20).unwrap();
|
let stack = OsStack::new(4 << 20).unwrap();
|
||||||
|
@ -48,7 +48,7 @@ fn slice_too_small() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic="SliceStack too small"]
|
#[should_panic(expected = "SliceStack too small")]
|
||||||
fn slice_too_small_unaligned() {
|
fn slice_too_small_unaligned() {
|
||||||
unsafe {
|
unsafe {
|
||||||
let ptr = heap::allocate(STACK_ALIGNMENT, STACK_ALIGNMENT);
|
let ptr = heap::allocate(STACK_ALIGNMENT, STACK_ALIGNMENT);
|
||||||
|
Loading…
Reference in New Issue
Block a user