]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/thread/local.rs
SGX target: fix std unit tests
[rust.git] / src / libstd / thread / local.rs
index 7ad6b124e3a384c1f57543d2230e4b0f513421de..b73c5856b8805bdd91cee0c7a9363734694ac081 100644 (file)
@@ -530,7 +530,7 @@ fn drop(&mut self) {
 
         thread::spawn(|| {
             assert!(FOO.try_with(|_| ()).is_ok());
-        }).join().ok().unwrap();
+        }).join().ok().expect("thread panicked");
     }
 
     #[test]
@@ -584,7 +584,7 @@ fn drop(&mut self) {
 
         thread::spawn(move|| {
             drop(S1);
-        }).join().ok().unwrap();
+        }).join().ok().expect("thread panicked");
     }
 
     #[test]
@@ -600,7 +600,7 @@ fn drop(&mut self) {
 
         thread::spawn(move|| unsafe {
             K1.with(|s| *s.get() = Some(S1));
-        }).join().ok().unwrap();
+        }).join().ok().expect("thread panicked");
     }
 
     // Note that this test will deadlock if TLS destructors aren't run (this