Browse Source

Handle spaces in path to IronPython and IronRuby console applications when running them without the debugger.

pull/2/head
mrward 15 years ago
parent
commit
a5ef759657
  1. 2
      src/AddIns/BackendBindings/Python/PythonBinding/Test/Gui/RunPythonCommandTests.cs
  2. 2
      src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Gui/RunRubyCommandTests.cs
  3. 2
      src/AddIns/BackendBindings/Scripting/Project/Src/PauseCommandPromptProcessStartInfo.cs

2
src/AddIns/BackendBindings/Python/PythonBinding/Test/Gui/RunPythonCommandTests.cs

@ -61,7 +61,7 @@ namespace PythonBinding.Tests.Gui @@ -61,7 +61,7 @@ namespace PythonBinding.Tests.Gui
public void Run_PythonFileOpen_IronPythonConsoleAndPythonFileNameAndPausePassedAsCommandLineArguments()
{
string args = debugger.ProcessStartInfo.Arguments;
string expectedArgs = "/c \"C:\\IronPython\\ipy.exe \"test.py\"\" & pause";
string expectedArgs = "/c \"\"C:\\IronPython\\ipy.exe\" \"test.py\"\" & pause";
Assert.AreEqual(expectedArgs, args);
}

2
src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Gui/RunRubyCommandTests.cs

@ -62,7 +62,7 @@ namespace RubyBinding.Tests.Gui @@ -62,7 +62,7 @@ namespace RubyBinding.Tests.Gui
public void Run_RubyFileOpen_ProcessInfoArgsContainsFileNameActiveInTextEditor()
{
string arguments = debugger.ProcessStartInfo.Arguments;
string expectedArguments = "/c \"C:\\IronRuby\\ir.exe \"test.rb\"\" & pause";
string expectedArguments = "/c \"\"C:\\IronRuby\\ir.exe\" \"test.rb\"\" & pause";
Assert.AreEqual(expectedArguments, arguments);
}

2
src/AddIns/BackendBindings/Scripting/Project/Src/PauseCommandPromptProcessStartInfo.cs

@ -28,7 +28,7 @@ namespace ICSharpCode.Scripting @@ -28,7 +28,7 @@ namespace ICSharpCode.Scripting
string GetArguments()
{
return String.Format("/c \"{0} {1}\" & pause",
return String.Format("/c \"\"{0}\" {1}\" & pause",
processStartInfo.FileName, processStartInfo.Arguments);
}
}

Loading…
Cancel
Save