-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exit codes not being respected by RunWithTimeout
We're assuming that `Process.Wait()` returns an error if the process exits with an error code. `Cmd.Wait()` returns with an error value on a non-zero exit code but `Process.Wait()` returns an error on OS-specific details (like if the process isn't a child process) and instead we should be checking the value of the `ProcessState.Success()` method. Added two tests that ensure we don't miss this again.
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters