Fix tests

This commit is contained in:
Stephen M. Coakley
2016-09-08 00:08:15 -05:00
parent 5bd834bdb4
commit 6e10e29a97

View File

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