mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user