@@ -12,18 +12,18 @@ index 8b76080..9e65de2 100644
12
12
--- a/src/libtest/lib.rs
13
13
+++ b/src/libtest/lib.rs
14
14
@@ -52,7 +52,7 @@ use std::fmt;
15
- use std::fs::File;
16
- use std::io;
17
- use std:: io::prelude::*;
18
- - use std:: panic::{self, catch_unwind, AssertUnwindSafe, PanicInfo};
19
- + use std:: panic::{self, PanicInfo};
20
- use std::path::PathBuf;
21
- use std::process;
22
- use std::process ::{ExitStatus, Command, Termination};
15
+ env,
16
+ io,
17
+ io::prelude::Write,
18
+ - panic::{self, catch_unwind, AssertUnwindSafe, PanicInfo},
19
+ + panic::{self, PanicInfo},
20
+ process,
21
+ process::{Command, Termination},
22
+ sync::mpsc ::{channel, Sender},
23
23
@@ -1493,7 +1493,7 @@ pub fn run_test(
24
24
fn run_test_inner(
25
25
desc: TestDesc,
26
- monitor_ch: Sender<MonitorMsg >,
26
+ monitor_ch: Sender<CompletedTest >,
27
27
- testfn: Box<dyn FnOnce() + Send>,
28
28
+ testfn: Box<impl FnOnce() + Send + 'static>,
29
29
opts: TestRunOpts,
@@ -65,8 +65,8 @@ index 8b76080..9e65de2 100644
65
65
report_time: bool,
66
66
- testfn: Box<dyn FnOnce() + Send>,
67
67
+ testfn: Box<impl FnOnce() + Send + 'static>,
68
- monitor_ch: Sender<MonitorMsg >,
69
- time_opts: Option<TestTimeOptions>,
68
+ monitor_ch: Sender<CompletedTest >,
69
+ time_opts: Option<time:: TestTimeOptions>,
70
70
) {
71
71
// Buffer for capturing standard I/O
72
72
let data = Arc::new(Mutex::new(Vec::new()));
@@ -80,7 +80,7 @@ index 8b76080..9e65de2 100644
80
80
let duration = start.elapsed();
81
81
TestExecTime(duration)
82
82
@@ -1688,10 +1676,10 @@ fn spawn_test_subprocess(desc: TestDesc, report_time: bool, monitor_ch: Sender<M
83
- monitor_ch.send((desc.clone(), result, exec_time, test_output) ).unwrap();
83
+ monitor_ch.send(message ).unwrap();
84
84
}
85
85
86
86
fn run_test_in_spawned_subprocess(
0 commit comments