From 34856e371aaae98242537abcd00cdc714d850469 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 22 Apr 2013 19:09:04 +0200 Subject: [PATCH] IDEA-105472 (test added) --- .../com/intellij/execution/GeneralCommandLineTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java b/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java index d4fbc32c7ef9..f7515e9849b9 100644 --- a/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java +++ b/platform/platform-tests/testSrc/com/intellij/execution/GeneralCommandLineTest.java @@ -151,6 +151,15 @@ public class GeneralCommandLineTest { } } + @Test + public void winShellCommand() throws Exception { + assumeTrue(SystemInfo.isWindows); + + String string = "http://localhost/wtf?a=b&c=d"; + String echo = ExecUtil.execAndReadLine(ExecUtil.getWindowsShellName(), "/c", "echo", string); + assertEquals('"' + string + '"', echo); + } + @Test public void environmentPassing() throws Exception { Map testEnv = new HashMap();