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

Regression test:java/awt/print/PrinterJob/DrawStringMethods.html failing

XMLWordPrintable

    • 2d
    • beta3
    • sparc
    • solaris_8
    • Verified

      Regression test:java/awt/print/PrinterJob/DrawStringMethods.html failing with jdk1.4 beta refresh b68 on Solairs8/x86 utf-locale.

      When this test case is lanunched, although a dialog of "DrawStringMethods" comes up first, nothing happen next.(no demand seems to be sent to a printer).
      Therefore, I can not confirm whether the result is correct or not.
      I tried using two diffrerent printer, however, the result is the same.
      It is nothing printed out.


      To reproduce;

      1. execute the following command with merlin-beta-refresh-b68;
         % sh ./reg_merlin_build68_ja.sh "jtreg -m -jdk:/net/javasoft/export/share/java/bin/jdk1.4/solx86"

      You can see that although a dialog of "DrawStringMethods" appears, nothing printed out.

      "reg_merlin_build68_ja.sh" gets from the URL below;
      http://meercat.eng.sun.com:8080/shuna/i18n_regression/script/merlin/build68_06142001/


      Below is "DrawStringMethods.jtr":

      Test Results (version 2)
      #Mon Jun 18 10:40:09 JST 2001
      #checksum:54d09617068a256e
      #-----testdescription-----
      $file=/home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/DrawStringMethods.html
      $root=/home/rs88024/regression/reg_merlin/test
      keywords=bug4185019 manual
      run=USER_SPECIFIED applet/manual=yesno DrawStringMethods.html\n
      source=DrawStringMethods.html
      title=Confirm that all of the drawString methods on Graphics2D work for printer graphics objects.

      #-----environment-----

      #-----testresult-----
      description=file:///home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/DrawStringMethods.html
      end=Mon Jun 18 10:40:08 JST 2001
      environment=regtest
      execStatus=Failed. Manual test, user evaluated: Execution failed
      javatestOS=SunOS 5.8 (x86)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build applet
      start=Mon Jun 18 10:39:57 JST 2001
      status=Failed. Manual test, user evaluated: Execution failed
      test=java/awt/print/PrinterJob/DrawStringMethods.html
      work=/home/rs88024/regression/reg_merlin/JTwork/java/awt/print/PrinterJob

      #section:script_messages
      ----------messages:(1/111)----------
      JDK under test: java full version "1.4.0-beta_refresh-b68" (/net/javasoft/export/share/java/bin/jdk1.4/solx86)

      #section:build
      ----------messages:(3/104)----------
      command: build DrawStringMethods
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0060
      result: Passed. No need to compile: DrawStringMethods.java

      #section:applet
      ----------messages:(3/149)----------
      command: applet DrawStringMethods.html
      reason: User specified action: run applet/manual=yesno DrawStringMethods.html
      elapsed time (seconds): 11.342
      ----------System.out:(0/0)----------
      ----------System.err:(1/15)----------
      STATUS:Failed.
      result: Failed. Manual test, user evaluated: Execution failed


      test result: Failed. Manual test, user evaluated: Execution failed


      ============================================================================

      I tried to verify this bug and tested again with merlin-beta_refresh b74.
      This test case is changed to use "main", so I modified the header of "DrawStringMethods.java" as below;

      ----------------------------
      /**
       * @test
       * @bug 4185019
       * @summary Confirm that all of the drawString methods on Graphics2D
       * work for printer graphics objects.
       * @run main/manual DrawStringMethods
       */
      ----------------------------

      Running with java command, this test case is "PASSED" with no errors.
      However, running with jtreg tool, Parse Exception occurs and does not work.
      % set path=(/jct-tools2.1.5/solaris/bin $path)
      % jtreg -m -jdk:/net/javasoft/export/share/java/bin/jdk1.4/solsparc .

      Below is DrawStringMethods.jtr;

      #Test Results (version 2)
      #Mon Aug 06 11:22:02 JST 2001
      #checksum:46112941153ad95a
      #-----testdescription-----
      $file=/home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/work/DrawStringMethods.java
      $root=/home/rs88024/regression/reg_merlin/test
      error=Parse Exception: Unexpected length for bugid: 4185019:
      keywords=manual
      run=USER_SPECIFIED main/manual DrawStringMethods.html\n
      source=DrawStringMethods.java
      title=Confirm that all of the drawString methods on Graphics2D work for printer graphics objects.

      #-----environment-----

      #-----testresult-----
      description=file:///home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/work/DrawStringMethods.java
      end=Mon Aug 06 11:22:02 JST 2001
      environment=regtest
      execStatus=Error. Parse Exception: Unexpected length for bugid: 4185019:
      javatestOS=SunOS 5.6 (sparc)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages
      start=Mon Aug 06 11:22:01 JST 2001
      status=Error. Parse Exception: Unexpected length for bugid: 4185019:
      test=java/awt/print/PrinterJob/work/DrawStringMethods.java
      work=/home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/work/JTwork/java/awt/print/PrinterJob/work

      #section:script_messages
      ----------messages:(1/113)----------
      JDK under test: java full version "1.4.0-beta_refresh-b74" (/net/javasoft/export/share/java/bin/jdk1.4/solsparc)


      test result: Error. Parse Exception: Unexpected length for bugid: 4185019:


      [rieko.suzuki@Japan 2001-08-06]
      ============================================================================

      I changed the header from "bugid:4185019:" to "bugid: 4185019" and tested again.

      Running with jtreg tool, this test case is executed with no error.
      However, it is nothing printed out from a printer.
      No demand seems to be sent to a printer.

      I am not sure that this problem may be jtreg tool problem.


      [rieko.suzuki@Japan 2001-08-06]
      ============================================================================

            jgodinez Jennifer Godinez (Inactive)
            rsuzukisunw Rieko Suzuki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: