Skip to content

Commit 2ae699c

Browse files
committed
make TLS-drop-test more cross-platform
1 parent f73cc11 commit 2ae699c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/run-pass/concurrency/tls_lib_drop_single_thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn main() {
2626
});
2727
A_CONST.with(|f| {
2828
assert_eq!(*f.value.borrow(), 10);
29-
*f.value.borrow_mut() = 15;
29+
*f.value.borrow_mut() = 5; // Same value as above since the drop order is different on different platforms
3030
});
3131
eprintln!("Continue main.")
3232
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Continue main.
22
Dropping: 5
3-
Dropping: 15
3+
Dropping: 5

0 commit comments

Comments
 (0)