File tree Expand file tree Collapse file tree
ClaudeCodeSharpSDK.Tests/Unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public class ProcessRunnerCancellationTests
4545 private const string WindowsNonZeroExitCommand = "[Console]::Error.WriteLine('provider failed'); exit 23" ;
4646 private const string WindowsNonZeroExitBeforeInputCommand = "[Console]::Error.WriteLine('provider failed'); Start-Sleep -Milliseconds 100; exit 23" ;
4747 private const string WindowsZeroExitAfterClosingInputCommand = "[Console]::OpenStandardInput().Dispose(); Start-Sleep -Milliseconds 100; exit 0" ;
48- private const string WindowsStaysRunningAfterClosingInputCommand = "Write-Output 'started '; [Console ]::OpenStandardInput().Dispose() ; Start-Sleep -Seconds 30" ;
48+ private const string WindowsStaysRunningAfterClosingInputCommand = "Add-Type -TypeDefinition 'using System; using System.Runtime.InteropServices; public static class CliTestNativeInput { [DllImport( \" kernel32.dll \" )] public static extern bool CloseHandle(IntPtr handle); [DllImport( \" kernel32.dll \" )] public static extern IntPtr GetStdHandle(int handle); } '; [CliTestNativeInput ]::CloseHandle([CliTestNativeInput]::GetStdHandle(-10)); Write-Output 'started' ; Start-Sleep -Seconds 30" ;
4949 private const string SystemRootVariableName = "SystemRoot" ;
5050 private const string WindowsDirectoryVariableName = "WINDIR" ;
5151 private const string PathVariableName = "PATH" ;
You can’t perform that action at this time.
0 commit comments