]> git.lizzy.rs Git - rust.git/commitdiff
Join test thread to make assertion effective in sym.rs test case
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Mon, 8 Mar 2021 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Sat, 20 Mar 2021 20:41:27 +0000 (21:41 +0100)
src/test/ui/asm/sym.rs

index 9931697e4129c2b7dfa6a0bb83f4343f65a4d38f..d5c03a7d567baf67dca5be4ce358075eab5ec2e9 100644 (file)
@@ -76,5 +76,5 @@ fn main() {
     std::thread::spawn(|| {
         assert_eq!(static_addr!(S1), &S1 as *const u32);
         assert_eq!(static_tls_addr!(S2), &S2 as *const u32);
-    });
+    }).join().unwrap();
 }