attempt to fix hanging 'redirectInput' test on Win7 (IDEA-CR-19850)

According to http://stackoverflow.com/questions/10824178/how-do-you-redirect-standard-input-to-a-file-in-the-windows-command-line: "FINDSTR will hang indefinitely on XP and Windows 7 if reading redirected input and the last line does not end with <LF>"
This commit is contained in:
Sergey Simonchik
2017-03-30 13:39:20 +03:00
parent a36992fae4
commit 0a46bd1998
@@ -228,7 +228,7 @@ public class GeneralCommandLineTest {
@Test(timeout = 60000)
public void redirectInput() throws Exception {
String content = "Line 1\nLine 2";
String content = "Line 1\nLine 2\n";
File input = FileUtil.createTempFile("input", null);
FileUtil.writeToFile(input, content);
File script = createTempScript("print-stdin",