File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6159if (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
You can’t perform that action at this time.
0 commit comments