Fix tests

This commit is contained in:
Stephen M. Coakley 2016-09-08 00:08:15 -05:00
parent 5bd834bdb4
commit 6e10e29a97
No known key found for this signature in database
GPG key ID: 91B59C18494C4FC0

View file

@ -1009,12 +1009,12 @@ mod tests {
#[test]
fn test_thread_id_equal() {
assert_eq!(ThreadId::current(), ThreadId::current());
assert!(thread::ThreadId::current() == thread::ThreadId::current());
}
#[test]
fn test_thread_id_not_equal() {
assert!(ThreadId::current() != spawn(|| ThreadId::current()).join());
assert!(thread::ThreadId::current() != thread::spawn(|| thread::ThreadId::current()).join().unwrap());
}
// NOTE: the corresponding test for stderr is in run-pass/thread-stderr, due