Skip to content

Commit

Permalink
Fix test LaunchTests.testProcessLaunchWithLongWorkingDirectory on Linux
Browse files Browse the repository at this point in the history
Fixes #1488
  • Loading branch information
HannesWell committed Aug 14, 2024
1 parent 63a314e commit 860ec50
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.io.IOException;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;
import java.nio.file.Files;
import java.util.Collections;
import java.util.ConcurrentModificationException;
import java.util.List;
Expand Down Expand Up @@ -146,6 +147,7 @@ public void testProcessLaunchWithLongWorkingDirectory() throws CoreException, IO
String[] segments = Collections.nCopies((400 - rootLength) / subPathElementsName.length(), subPathElementsName).toArray(String[]::new);
File workingDirectory = tempFolder.newFolder(segments);
assertTrue(workingDirectory.toString().length() > 300);
Files.createDirectories(workingDirectory.toPath());

startProcessAndAssertOutputContains(List.of("java", "--version"), workingDirectory, false, "jdk");
startProcessAndAssertOutputContains(List.of("java", "--version"), workingDirectory, true, "jdk");
Expand Down

0 comments on commit 860ec50

Please sign in to comment.