Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-4492134

Regression test case does not work correctly using JTreg tool

    XMLWordPrintable

Details

    • fcs
    • sparc
    • solaris_8

    Description

      Running with jtreg tool, regression test case(DrawStringMethod.java) does not work correclry.

      This test case(DrawStringMethod.java) prints out a series of strings using each of the available methods supported by Graphics and Graphics2D and sends the printout to the printer. The test passes if the printout shows the following lines in the "Graphics methods" section:

              drawString(String str, int x, int y)
              drawString(AttributedCharacterIterator iterator, int x, int y)
              drawChars(char data[], int offset, int length, int x, int y)";
              drawBytes(byte data[], int offset, int length, int x, int y)";

      and then in the "Graphics2D methods" section, either the following lines:

              drawString(String s, float x, float y)";
              drawString(AttributedCharacterIterator iterator, float x, float y)";
              drawGlyphVector(GlyphVector g, float x, float y)";

      or the single line:

              Graphics object does not support Graphics2D methods

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


      Running this test case with java command, I can get the printout from a printer.

      It seems that this problem that no demand is sent a printer is due to jtreg tool problem, because this test case works correctly using java command.


      To reproduce;

      1. Set jtreg path
         % set PATH=($jct-tools2.1.5/solaris/bin $path)

      2. Launch attached test case(DrawStringMethod.java)
         % jtreg -jdk:/net/javasoft/export/share/java/bin/jdk1.4/solsparc DrawStringMethod.java

      3. The following messages is displayed on Terminal.

         Directory "./JTreport" not found: Creating
         Directory "./JTwork" not found: Creating
         Directory "./JTwork/scratch" not found: Creating
         test results: passed: 1
         Report written to /home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/JTrepor
      t/report.html
         Results written to /home/rs88024/regression/reg_merlin/test/java/awt/print/PrinterJob/JTwork

      Results:
      Although the results is "PASSED", nothing is printed out from a printer.


      I attached the report(env.html, Methods.jtr, harness.trace) generated automatically.
      Please check them.

      JTreg version: jct-tools 2.1.5
      Java version : merlin_beta_refresh b75

      Attachments

        Issue Links

          Activity

            People

              jjg Jonathan Gibbons
              rsuzukisunw Rieko Suzuki (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: