Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-273

Build failures with >=JDK16 - analyze test behaviour or rewrite tests and update build matrix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.14
    • 0.14
    • None
    • None

    Description

      A Travis build running against
      DOCKER_IMAGE=maven:3.6.3-openjdk-16  
      revealed the following test failures:

      fixed by jochen@apache.org 20220331: {{Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec <<< FAILURE! - in org.apache.rat.header.HeaderMatcherTest
      lines(org.apache.rat.header.HeaderMatcherTest) Time elapsed: 0.01 sec <<< FAILURE!
      java.lang.AssertionError: One line read expected:<1> but was:<2>
      at org.apache.rat.header.HeaderMatcherTest.lines(HeaderMatcherTest.java:84)
      noLines(org.apache.rat.header.HeaderMatcherTest) Time elapsed: 0.002 sec <<< FAILURE!
      java.lang.AssertionError: No lines read expected:<0> but was:<1>
      at org.apache.rat.header.HeaderMatcherTest.noLines(HeaderMatcherTest.java:74)}}

      SUMMARY:
      {{ HeaderMatcherTest.lines:84 One line read expected:<1> but was:<2>
      HeaderMatcherTest.noLines:74 No lines read expected:<0> but was:<1>}}

      https://travis-ci.org/github/apache/creadur-rat/jobs/726998247

      After fixing the bug

       

      Attachments

        Issue Links

          Activity

            People

              pottlinger Philipp Ottlinger
              pottlinger Philipp Ottlinger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: