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 468ae32 commit ae89807
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 ae89807

Please sign in to comment.