Skip to content

Commit

Permalink
Fix test failure due to empty line at start of process_monitor_output…
Browse files Browse the repository at this point in the history
….txt (#40)

Signed-off-by: Alan Jowett <[email protected]>
Co-authored-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett and Alan Jowett authored May 1, 2024
1 parent d112d96 commit 2e31af2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tools/process_monitor/Test-ProcessMonitor.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ if (Test-Path -Path "process_monitor_output.txt") {
exit 1
}

# Check if the output file is not empty.
if ((Get-Content -Path "process_monitor_output.txt") -eq "") {
Write-Output "Process Monitor output file is empty."
exit 1
}

# Check for the process name in the output file.
if ((Get-Content -Path "process_monitor_output.txt") -match "cmd.exe") {
Write-Output "Process Monitor output file contains the expected string."
Expand Down

0 comments on commit 2e31af2

Please sign in to comment.