274 references to ExitCode
Aspire.EndToEnd.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
267reason = $"App exited before startup could complete with exit code {AppHostProcess.ExitCode}. It ran for {runTimeStopwatch.Elapsed} secs.";
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
174CurrentProcess.ExitCode,
Aspire.Hosting (3)
Dcp\Process\ProcessUtil.cs (3)
101if (processSpec.ThrowOnNonZeroReturnCode && process.ExitCode != 0) 104$"Command {processSpec.ExecutablePath} {processSpec.Arguments} returned non-zero exit code {process.ExitCode}")); 108processLifetimeTcs.TrySetResult(new ProcessResult(process.ExitCode));
Aspire.Hosting.Azure (3)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (3)
101if (processSpec.ThrowOnNonZeroReturnCode && process.ExitCode != 0) 104$"Command {processSpec.ExecutablePath} {processSpec.Arguments} returned non-zero exit code {process.ExitCode}")); 108processLifetimeTcs.TrySetResult(new ProcessResult(process.ExitCode));
Aspire.Hosting.Tests (3)
MSBuildTests.cs (1)
120Assert.True(process.ExitCode == 0, $"Build failed: {Environment.NewLine}{output}");
Utils\DockerUtils.cs (2)
22var done = exited && process.ExitCode == 0; 38var exitCode = process.ExitCode;
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
267reason = $"App exited before startup could complete with exit code {AppHostProcess.ExitCode}. It ran for {runTimeStopwatch.Elapsed} secs.";
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
174CurrentProcess.ExitCode,
dotnet-dev-certs (14)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
dotnet-getdocument (1)
Exe.cs (1)
62return process.ExitCode;
dotnet-openapi (2)
Commands\BaseCommand.cs (2)
238if (process.ExitCode != 0) 251throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` returned ExitCode `{process.ExitCode}` and gave error `{error}` and output `{output}`");
dotnet-svcutil-lib (4)
Shared\Utilities\ProcessRunner.cs (4)
145await safeLogger.WriteMessageAsync($"Exit code: {proc.ExitCode}", false).ConfigureAwait(false); 147if (throwOnError && (isErrorLogged || proc.ExitCode != 0)) 150var exitCode = Path.GetFileName(processName) == Path.GetFileName(Process.GetCurrentProcess().MainModule.FileName) ? proc.ExitCode : -1; 158return new ProcessResult(proc.ExitCode, outputText);
dotnet-user-jwts (2)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
104if (process.ExitCode != 0) 108_reporter.Error($"Exit code: {process.ExitCode}");
dotnet-user-secrets (2)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (2)
104if (process.ExitCode != 0) 108_reporter.Error($"Exit code: {process.ExitCode}");
HelixTestRunner (4)
ProcessUtil.cs (4)
155PrintMessage($"'{process.StartInfo.FileName} {process.StartInfo.Arguments}' completed with exit code '{process.ExitCode}'"); 156if (throwOnError && process.ExitCode != 0) 158processLifetimeTask.TrySetException(new InvalidOperationException($"Command {filename} {arguments} returned exit code {process.ExitCode} output: {outputBuilder.ToString()}")); 162processLifetimeTask.TrySetResult(new ProcessResult(outputBuilder.ToString(), errorBuilder.ToString(), process.ExitCode));
IdeCoreBenchmarks (4)
ClassificationBenchmarks.cs (1)
50if (restoreOperation.ExitCode != 0)
FindReferencesBenchmarks.cs (1)
47if (restoreOperation.ExitCode != 0)
IncrementalSourceGeneratorBenchmarks.cs (1)
56if (restoreOperation.ExitCode != 0)
NavigateToBenchmarks.cs (1)
53if (restoreOperation.ExitCode != 0)
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (2)
59if (process.ExitCode != 0) 61throw new InvalidOperationException($"Exit code {process.ExitCode} when running {fileName} {arguments}. Stdout: {process.StandardOutput.ReadToEnd()} Stderr: {process.StandardError.ReadToEnd()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
164Assert.Equal(0, hostProcess.ExitCode);
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (2)
59if (process.ExitCode != 0) 61throw new InvalidOperationException($"Exit code {process.ExitCode} when running {fileName} {arguments}. Stdout: {process.StandardOutput.ReadToEnd()} Stderr: {process.StandardError.ReadToEnd()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
164Assert.Equal(0, hostProcess.ExitCode);
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (2)
59if (process.ExitCode != 0) 61throw new InvalidOperationException($"Exit code {process.ExitCode} when running {fileName} {arguments}. Stdout: {process.StandardOutput.ReadToEnd()} Stderr: {process.StandardError.ReadToEnd()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
164Assert.Equal(0, hostProcess.ExitCode);
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (2)
59if (process.ExitCode != 0) 61throw new InvalidOperationException($"Exit code {process.ExitCode} when running {fileName} {arguments}. Stdout: {process.StandardOutput.ReadToEnd()} Stderr: {process.StandardError.ReadToEnd()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
164Assert.Equal(0, hostProcess.ExitCode);
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (2)
59if (process.ExitCode != 0) 61throw new InvalidOperationException($"Exit code {process.ExitCode} when running {fileName} {arguments}. Stdout: {process.StandardOutput.ReadToEnd()} Stderr: {process.StandardError.ReadToEnd()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
164Assert.Equal(0, hostProcess.ExitCode);
IISExpress.FunctionalTests (5)
InProcess\IISExpressShutdownTests.cs (2)
87Assert.True(result.HostProcess.ExitCode == 0); 99Assert.True(result.HostProcess.ExitCode == 1);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\AppVerifier.cs (2)
59if (process.ExitCode != 0) 61throw new InvalidOperationException($"Exit code {process.ExitCode} when running {fileName} {arguments}. Stdout: {process.StandardOutput.ReadToEnd()} Stderr: {process.StandardError.ReadToEnd()}");
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
164Assert.Equal(0, hostProcess.ExitCode);
InteropTests (6)
Helpers\ClientProcess.cs (1)
43public int ExitCode => _process.ExitCode;
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Microsoft.Arcade.Common (1)
Command.cs (1)
102var exitCode = _process.ExitCode;
Microsoft.AspNetCore.DeveloperCertificates.XPlat (14)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
ShutdownTests.cs (1)
142Assert.Equal(0, process.ExitCode);
Microsoft.AspNetCore.Server.IntegrationTesting (12)
ApplicationPublisher.cs (3)
82if (hostProcess.ExitCode != 0) 84var message = $"{DotnetCommandName} publish exited with exit code : {hostProcess.ExitCode}"; 96logger.LogInformation($"{DotnetCommandName} publish finished with exit code : {hostProcess.ExitCode}");
Deployers\NginxDeployer.cs (1)
174if (runNginx.ExitCode != 0)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
261if (runScriptsOnRemoteServerProcess.HasExited && runScriptsOnRemoteServerProcess.ExitCode != 0)
Deployers\SelfHostDeployer.cs (2)
170started.TrySetException(new Exception($"Command exited unexpectedly with exit code: {HostProcess.ExitCode}")); 186Logger.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, HostProcess.Id, HostProcess.ExitCode);
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (5)
IISExpressDeployer.cs (5)
226started.TrySetException(new Exception($"Command exited unexpectedly with exit code: {process.ExitCode}")); 235Logger.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, process.Id, process.ExitCode); 563if (hostProcess.ExitCode != 0) 565Logger.LogWarning($"IISExpress exit code is non-zero after graceful shutdown. Exit code: {hostProcess.ExitCode}"); 566throw new InvalidOperationException($"IISExpress exit code is non-zero after graceful shutdown. Exit code: {hostProcess.ExitCode}.");
Microsoft.AspNetCore.Server.Kestrel.Core (14)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
191return process.ExitCode;
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\Executable.cs (1)
51process.Exited += (_, __) => tcs.TrySetResult(process.ExitCode);
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
360CommunicationsUtilities.Trace("Could not connect to node with PID {0}; it has exited with exit code {1}. This can indicate a crash at startup", msbuildProcess.Id, msbuildProcess.ExitCode);
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
561process.ExitCode.ShouldBe(0); 605process.ExitCode.ShouldBe(0);
Microsoft.Build.Tasks.Core (1)
ManifestUtil\SecurityUtil.cs (1)
805switch (signTool.ExitCode)
Microsoft.Build.UnitTests.Shared (1)
RunnerUtilities.cs (1)
162successfulExit = p.ExitCode == 0;
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
799ExitCode = proc.ExitCode;
Microsoft.Build.Utilities.UnitTests (1)
ProcessExtensions_Tests.cs (1)
33p.ExitCode.ShouldNotBe(0);
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.cs (1)
204exitCode = process.HasExited ? process.ExitCode : (int?)null;
Interactive\Core\InteractiveHost.LazyRemoteService.cs (2)
244string.Format(InteractiveHostResources.Failed_to_launch_0_process_exit_code_colon_1_with_output_colon, hostPath, process.ExitCode), 255return process.ExitCode;
Microsoft.CodeAnalysis.Test.Utilities (3)
FX\ProcessUtilities.cs (3)
89return new ProcessResult(process.ExitCode, outputBuilder.ToString(), errorBuilder.ToString()); 147Assert.True(expectedRetCode == process.ExitCode, $"Unexpected exit code: {process.ExitCode} (expecting {expectedRetCode}). Process output: {result}. Process error: {error}");
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\BuildHostProcessManager.cs (3)
100throw new Exception($"BuildHost process exited immediately with {process.ExitCode}"); 462else if (_process.ExitCode != 0) 463_logger.LogError("The BuildHost process exited with {errorCode}. Process output:{newLine}{processLog}", _process.ExitCode, Environment.NewLine, processLog);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
173if (process.ExitCode != 0)
Microsoft.DotNet.Arcade.Sdk.Tests (1)
Utilities\TestApp.cs (1)
105return process.ExitCode;
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\GeneralUtils.cs (1)
331ExitCode = process.ExitCode,
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolUploadHelper.cs (2)
490logger.Information("completed after {0} with exit code {1}", sw.Elapsed, process.ExitCode); 491return process.ExitCode;
Microsoft.DotNet.MacOsPkg (2)
ExecuteHelper.cs (2)
28if (process.ExitCode != 0) 30throw new Exception($"Command '{command} {arguments}' failed with exit code {process.ExitCode}: {process.StandardError.ReadToEnd()}");
Microsoft.DotNet.MacOsPkg.Tests (1)
UnpackPackTests.cs (1)
225bool success = process.ExitCode == 0;
Microsoft.DotNet.Open.Api.Tools.Tests (2)
ProcessEx.cs (2)
55public int ExitCode => _process.ExitCode; 122_exited.TrySetResult(_process.ExitCode);
Microsoft.DotNet.RemoteExecutor (4)
RemoteInvokeHandle.cs (4)
36return Process.ExitCode; 238int actual = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Process.ExitCode : unchecked((sbyte)Process.ExitCode); 242throw new RemoteExecutionException($"Exit code was {Process.ExitCode} but it should have been {Options.ExpectedExitCode}");
Microsoft.DotNet.SignTool (6)
src\BatchSignUtil.cs (1)
441return process.ExitCode == 0;
src\RealSignTool.cs (2)
73if (process.ExitCode != 0) 129return process.ExitCode == 0;
src\SignTool.cs (1)
209if (process.ExitCode != 0)
src\VerifySignatures.cs (2)
209if (process.ExitCode != 0 && throwOnError) 211throw new Exception($"Command '{command}' failed with exit code {process.ExitCode}");
Microsoft.Extensions.ApiDescription.Client.Tests (5)
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Microsoft.ML.CodeGenerator (3)
Utils.cs (3)
206var exitCode = proc.ExitCode; 231var exitCode = proc.ExitCode; 252var exitCode = proc.ExitCode;
Microsoft.VisualBasic.IntegrationTests (2)
InteractionTests.cs (1)
53Assert.NotEqual(2, process.ExitCode);
Microsoft\VisualBasic\MyServices\Internal\ProgressDialogTests.cs (1)
18Assert.NotEqual(2, process.ExitCode);
PrepareTests (1)
TestDiscovery.cs (1)
127success &= pipeClient.ExitCode == 0;
Roslyn.Test.Performance.Utilities (1)
TestUtilities.cs (1)
177Code = process.ExitCode,
RunTests (2)
ProcessRunner.cs (1)
135return process.ExitCode;
Program.cs (1)
174Logger.Log($"### Exit code {process.ExitCode}");
System.CodeDom (1)
System\CodeDom\Compiler\Executor.cs (1)
95return p.ExitCode;
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.PingUtility.cs (2)
64return ParsePingUtilityOutput(address, p.ExitCode, stdout); 87return ParsePingUtilityOutput(address, pingProcess.ExitCode, stdout);
System.Windows.Forms.IntegrationTests.Common (1)
TestHelpers.cs (1)
139return process.ExitCode;
Templates.Blazor.Tests (19)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Blazor.WebAssembly.Auth.Tests (20)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited.";
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Blazor.WebAssembly.Tests (20)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited.";
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Mvc.Tests (20)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited.";
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");
Templates.Tests (20)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (9)
107if (process.ExitCode != 0) 109Log.MacOSTrustCommandError(process.ExitCode); 169return checkTrustProcess.ExitCode == 0 ? TrustLevel.Full : TrustLevel.None; 217if (process.ExitCode != 0) 219Log.MacOSRemoveCertificateTrustRuleError(process.ExitCode); 262if (process.ExitCode != 0) 264Log.MacOSRemoveCertificateFromKeyChainError(process.ExitCode); 363if (process.ExitCode != 0) 365Log.MacOSAddCertificateToKeyChainError(process.ExitCode, output);
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
573return process.ExitCode == 0; 602return process.ExitCode == 0; 626if (process.ExitCode == 0) 800if (process.ExitCode != 0) 844if (process.ExitCode != 0)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
180var exitCodeString = process.HasExited ? process.ExitCode.ToString(CultureInfo.InvariantCulture) : "Process has not yet exited.";
src\Shared\Process\ProcessEx.cs (5)
99public int ExitCode => _process.ExitCode; 192_exited.TrySetResult(_process.ExitCode); 202return $"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}"; 222else if (assertSuccess && _process.ExitCode != 0) 224Assert.Fail($"Process exited with code {_process.ExitCode}\nStdErr: {Error}\nStdOut: {Output}");