File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Write-Output "::group::Info"
4
4
Write-Output " Target: $env: CI_TARGET "
5
5
Write-Output " ::group::Running tests"
6
6
7
- $env: RUST_BACKTRACE = full
7
+ $env: RUST_BACKTRACE = " full"
8
8
./ tests/ $env: CI_TARGET / minion-tests.exe -- trace
9
9
if ($LASTEXITCODE -ne 0 ) {
10
10
throw " tests failed"
Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ impl WindowsChildProcess {
35
35
cwd : options. pwd . into ( ) ,
36
36
} ,
37
37
) ?;
38
+ let child = OwnedHandle :: new ( info. hProcess ) ;
39
+ options. sandbox . job . add_process ( & child) ?;
38
40
39
41
Ok ( WindowsChildProcess {
40
- child : OwnedHandle :: new ( info . hProcess ) ,
42
+ child,
41
43
main_thread : OwnedHandle :: new ( info. hThread ) ,
42
44
stdin : child_stdin,
43
45
stdout : child_stdout,
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ impl Job {
68
68
pub ( crate ) fn kill ( & self ) -> Result < ( ) , Error > {
69
69
unsafe { Cvt :: nonzero ( TerminateJobObject ( self . handle . as_raw ( ) , 0xDEADBEEF ) ) . map ( |_| ( ) ) }
70
70
}
71
- pub ( crate ) fn add_process ( & self , process_handle : HANDLE ) -> Result < ( ) , Error > {
71
+ pub ( crate ) fn add_process ( & self , process_handle : & OwnedHandle ) -> Result < ( ) , Error > {
72
72
unsafe {
73
73
Cvt :: nonzero ( AssignProcessToJobObject (
74
74
self . handle . as_raw ( ) ,
75
- process_handle,
75
+ process_handle. as_raw ( ) ,
76
76
) )
77
77
. map ( |_| ( ) )
78
78
}
You can’t perform that action at this time.
0 commit comments