Skip to content

Commit

Permalink
make TLS-drop-test more cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Apr 20, 2021
1 parent f73cc11 commit 2ae699c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/run-pass/concurrency/tls_lib_drop_single_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() {
});
A_CONST.with(|f| {
assert_eq!(*f.value.borrow(), 10);
*f.value.borrow_mut() = 15;
*f.value.borrow_mut() = 5; // Same value as above since the drop order is different on different platforms
});
eprintln!("Continue main.")
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Continue main.
Dropping: 5
Dropping: 15
Dropping: 5

0 comments on commit 2ae699c

Please sign in to comment.