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

PixelBufferDrawTest fails on some systems

XMLWordPrintable

    • b08

      On my MacBook Pro M1 system, I consistently get the following system test failures in PixelBufferDrawTest:

      PixelBufferDrawTest > testByteBgraPreIndirectBuffer FAILED
          java.lang.AssertionError: expected:<0.10000000149011612> but was:<0.10588235408067703>

      PixelBufferDrawTest > testIntArgbPreDirectBuffer FAILED
          java.lang.AssertionError: expected:<0.10000000149011612> but was:<0.10588235408067703>

      PixelBufferDrawTest > testByteBgraPreDirectBuffer FAILED
          java.lang.AssertionError: expected:<0.10000000149011612> but was:<0.10588235408067703>

      PixelBufferDrawTest > testIntArgbPreIndirectBuffer FAILED
          java.lang.AssertionError: expected:<0.10000000149011612> but was:<0.10588235408067703>

      This is a problem with the test not having enough tolerance; the test uses a delta value of 0.005 and the observed difference on my system is slightly greater than that (by contrast, our other Robot tests use a much larger delta of 0.07). If I locally modify my test to use a delta of 0.01 (which is still 7 times tighter than most of our robot tests), they all pass.

            lkostyra Lukasz Kostyra
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: