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

[TESTBUG] test for 8067364 depends on hardwired text advance

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b80
    • CPU:
      generic
    • OS:
      linux, os_x

      Backports

        Description

        Testsuite name: Regression
        Test name(s): javax/print/PrintSEUmlauts/PrintSEUmlauts.java
        Product(s) tested: JDK 9b54(64-bit), JDK 8u60b06(64-bit)
        OS/architecture: Linux/x64

        Error log file (if present): see comments

        Reproducible: Always
        Reproducible on machine: spb23196.ru.oracle.com

        Is it a Regression: Yes ( see JDK-8067364 )
        Regression introduced in release/build:
        Test result on the last GAed release for this train: N/A
        Test result on FCS: N/A

        Is it a platform specific issue: No (fails on MacOSX also)
        [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
        [If new configuration testing] Issue specific to execution mode or OS/browser version:No

        Exception/Error from Log:
        ----------System.err:(20/1198)*----------
        FAIL
        java.lang.RuntimeException: Expected <e4> to represent '\u00e4' but not found!
        at PrintSEUmlauts.testPrintAndExit(PrintSEUmlauts.java:110)
        at PrintSEUmlauts.access$000(PrintSEUmlauts.java:51)
        at PrintSEUmlauts$1.printJobCompleted(PrintSEUmlauts.java:79)
        at sun.print.PSStreamPrintJob.notifyEvent(PSStreamPrintJob.java:214)
        at sun.print.PSStreamPrintJob.printableJob(PSStreamPrintJob.java:380)
        at sun.print.PSStreamPrintJob.print(PSStreamPrintJob.java:337)
        at PrintSEUmlauts.main(PrintSEUmlauts.java:83)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected <e4> to represent '\u00e4' but not found!
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected <e4> to represent '\u00e4' but not found!

        Test run log location:
        Steps to reproduce: see comments
        1. PrintSEUmlauts_Passed.jtr
          7 kB
          Pooja Chopra
        2. PrintSEUmlauts.jtr
          7 kB
          Shobhit Gupta

          Issue Links

            Activity

            Hide
            anashaty Anton Nashatyrev (Inactive) added a comment -
            Hi Victor,
            though the original bug has been assigned to me, it was fixed by Phil Race. Returning it back to you...
            Show
            anashaty Anton Nashatyrev (Inactive) added a comment - Hi Victor, though the original bug has been assigned to me, it was fixed by Phil Race. Returning it back to you...
            Hide
            prr Philip Race added a comment -
            Its a 'bug' in the test. Its looking for the string "<e4> 7.44 100.0 100.0 S" when only the "<e4>" part matters.
            The 2nd value is the 'desired width' which depends on the font used on screen and that can vary
            The systems on which it fail are simply picking up a different font.
            Show
            prr Philip Race added a comment - Its a 'bug' in the test. Its looking for the string "<e4> 7.44 100.0 100.0 S" when only the "<e4>" part matters. The 2nd value is the 'desired width' which depends on the font used on screen and that can vary The systems on which it fail are simply picking up a different font.
            Hide
            vdyakov Victor Dyakov added a comment -
            Mario, could you please fix it in 9 and 8u-dev ?
            Show
            vdyakov Victor Dyakov added a comment - Mario, could you please fix it in 9 and 8u-dev ?
            Hide
            neugens Mario Torre added a comment -
            Hi Viktor, Sorry, somehow I didn't see receive those messages :(

            If it's still valid, I'll correct the test on 9 and 8 asap.
            Show
            neugens Mario Torre added a comment - Hi Viktor, Sorry, somehow I didn't see receive those messages :( If it's still valid, I'll correct the test on 9 and 8 asap.
            Hide
            vdyakov Victor Dyakov added a comment - - edited
            Sure, please go ahead to fix it in 9 and 8u-dev(8u60). Mario?
            Show
            vdyakov Victor Dyakov added a comment - - edited Sure, please go ahead to fix it in 9 and 8u-dev(8u60). Mario?
            Hide
            neugens Mario Torre added a comment -
            Hi Victor, here is the proposed patch:

            http://cr.openjdk.java.net/~neugens/JDK-8075584/webrev/

            I'm also sending it to the mailing list for approval.
            Show
            neugens Mario Torre added a comment - Hi Victor, here is the proposed patch: http://cr.openjdk.java.net/~neugens/JDK-8075584/webrev/ I'm also sending it to the mailing list for approval.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/f45d4e52e7e2
            User: neugens
            Date: 2015-08-10 12:45:35 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/f45d4e52e7e2 User: neugens Date: 2015-08-10 12:45:35 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f45d4e52e7e2
            User: lana
            Date: 2015-09-01 20:27:06 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f45d4e52e7e2 User: lana Date: 2015-09-01 20:27:06 +0000

              People

              • Assignee:
                neugens Mario Torre
                Reporter:
                sgupta Shobhit Gupta
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: