Fix thread safety issue that was causing intermittent build failures
This commit is contained in:
parent
dca24eb5cc
commit
5178efb17b
|
|
@ -56,9 +56,27 @@ namespace Templates.Test.Helpers
|
||||||
proc.BeginErrorReadLine();
|
proc.BeginErrorReadLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Error => _stderrCapture.ToString();
|
public string Error
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
lock (_pipeCaptureLock)
|
||||||
|
{
|
||||||
|
return _stderrCapture.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public string Output => _stdoutCapture.ToString();
|
public string Output
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
lock (_pipeCaptureLock)
|
||||||
|
{
|
||||||
|
return _stdoutCapture.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public int ExitCode => _process.ExitCode;
|
public int ExitCode => _process.ExitCode;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue