Skip to content

Commit 4d87d27

Browse files
committed
Remove duplicate -Wait switch
1 parent 02d61f2 commit 4d87d27

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tests/only_connect/only_connect.ps1

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,16 @@ Remove-Item $OutputFile -ErrorAction Ignore
5252
$process = Start-Process ".\target\debug\navigator.exe" -ArgumentList "--dynamorio-bin-dir=$DynamoBin --mutator-lib=$MutatorLib --target-module=$Target --nargs=2 --target-path=$TargetPath --target-opts=`"127.0.0.1`"" -PassThru -Wait
5353
$ExitCode = $process.ExitCode
5454

55-
$nid = $process.Id
56-
Write-Host "App PID: $nid"
57-
58-
# Wait for the process to finish.
59-
Wait-Process -Id $nid
55+
if ($ExitCode -ne 0) {
56+
Write-Error "Test app failed with exit code: $ExitCode"
57+
}
6058

6159
if (Test-Path $OutputFile -PathType Leaf) {
6260
Write-Host "Found output file: $OutputFile"
6361
} else {
6462
Write-Host "Output file doesn't exist: $OutputFile"
6563
}
6664

67-
if ($ExitCode -ne 0) {
68-
Write-Error "Test app failed with exit code: $ExitCode"
69-
}
70-
7165
# Compare the output file to the expected output.
7266
$actual = Get-Content $OutputFile
7367

0 commit comments

Comments
 (0)