Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BusyJay committed Apr 7, 2017
1 parent abe2af9 commit 9211e1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ mod tests {
Err(libc::EINVAL));
super::mallctl_fetch(b"epoch\0", &mut epoch).unwrap();
assert!(epoch > 0);
assert_eq!(super::mallctl_set(b"", &mut epoch), Err(libc::EINVAL));
assert_eq!(super::mallctl_set(b"epoch", &mut epoch), Err(libc::EINVAL));
super::mallctl_set(b"epoch\0", &mut epoch).unwrap();
assert_eq!(super::mallctl_set(b"", epoch), Err(libc::EINVAL));
assert_eq!(super::mallctl_set(b"epoch", epoch), Err(libc::EINVAL));
super::mallctl_set(b"epoch\0", epoch).unwrap();
}
}
}

0 comments on commit 9211e1e

Please sign in to comment.