Skip to content

Commit

Permalink
Fix should_panic attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
edef1c committed Feb 25, 2017
1 parent d07fcea commit 34ab0dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/arch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod tests {
}

#[test]
#[should_panic="arg=0"]
#[should_panic(expected = "arg=0")]
fn panic_after_start() {
unsafe {
let stack = OsStack::new(4 << 20).unwrap();
Expand All @@ -92,7 +92,7 @@ mod tests {
}

#[test]
#[should_panic="arg=1"]
#[should_panic(expected = "arg=1")]
fn panic_after_swap() {
unsafe {
let stack = OsStack::new(4 << 20).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion tests/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn slice_too_small() {
}

#[test]
#[should_panic="SliceStack too small"]
#[should_panic(expected = "SliceStack too small")]
fn slice_too_small_unaligned() {
unsafe {
let ptr = heap::allocate(STACK_ALIGNMENT, STACK_ALIGNMENT);
Expand Down

0 comments on commit 34ab0dc

Please sign in to comment.