Skip to content

Commit

Permalink
Format trace in test
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 15, 2024
1 parent a4c1085 commit e70fddd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/concurrent-panics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ fn parent() {
fn child() {
let done = Arc::new(AtomicBool::new(false));
let done2 = done.clone();
let a = thread::spawn(move || {
while !done2.load(SeqCst) {
format!("{:?}", backtrace::Backtrace::new());
let a = thread::spawn(move || loop {
if done2.load(SeqCst) {
break format!("{:?}", backtrace::Backtrace::new());
}
});

Expand Down

0 comments on commit e70fddd

Please sign in to comment.