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

(zipfs) jdk/nio/zipfs/CRCWriteTest.java fails

    XMLWordPrintable

Details

    • b24

    Backports

      Description

        test/jdk/jdk/nio/zipfs/CRCWriteTest.java

        This test was introduced by JDK-8232879. It fails on all platforms.

        Failure reproducible after fix the issue of runs zero test:
        ===============================================
        jdk/nio/zipfs/CRCWriteTest.java
        Total tests run: 0, Failures: 0, Skips: 0
        ===============================================

        +++ b/test/jdk/jdk/nio/zipfs/CRCWriteTest.java
        @@ -57,7 +57,7 @@
              * can be used successfully with the OutputStream write methods
              */
             @Test
        - private void zipFsOsDeflatedWriteTest() throws Exception {
        + public void zipFsOsDeflatedWriteTest() throws Exception {

        With this, test is actually run, and it fails:

        test CRCWriteTest.zipFsOsDeflatedWriteTest(): failure
        java.lang.AssertionError: expected [true] but found [false]
        at org.testng.Assert.fail(Assert.java:94)
        at org.testng.Assert.failNotEquals(Assert.java:496)
        at org.testng.Assert.assertTrue(Assert.java:42)
        at org.testng.Assert.assertTrue(Assert.java:52)
        at CRCWriteTest.verify(CRCWriteTest.java:126)
        at CRCWriteTest.zipFsOsDeflatedWriteTest(CRCWriteTest.java:77)
        ...
        ===============================================
        jdk/nio/zipfs/CRCWriteTest.java
        Total tests run: 1, Failures: 1, Skips: 0
        ===============================================

        Attachments

          Issue Links

            Activity

              People

                lancea Lance Andersen
                amlu Amy Lu (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: