Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367607

Test jdk/jshell/CommandCompletionTest.java failed then timed out

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • tools

      Test reports a timeout:

      result: Error. "junit" action timed out with a timeout of 120 seconds on agent 6

      but there is an actual failure (which presumably chewed up the time)

      STARTED CommandCompletionTest::testUserHome 'testUserHome()'
      org.opentest4j.TestAbortedException: Assumption failed: No suitable file(s) found for this test in /opt/home/mach5-run

      Here is the failing code:

      348: public void testUserHome() throws IOException {
      349: List<String> completions;
      350: Path home = Paths.get(System.getProperty("user.home"));
      351: String selectedFile;
      352: try (Stream<Path> content = Files.list(home)) {
      353: selectedFile = content.filter(CLASSPATH_FILTER)
      354: .filter(file -> file.getFileName().toString().contains(" "))
      355: .findAny()
      356: .map(file -> file.getFileName().toString().replace(" ", "\\ "))
      357: .orElse(null);
      358: }
      359: Assumptions.assumeFalse(selectedFile == null, "No suitable file(s) found for this test in " + home);

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: