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

TEST_BUG: Regression-test javax/print/StreamPrinting.java fails with timout

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 09/23/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b20
                      (fails with previous JDK builds because of bug 4908692 integrated
                       in JDK1.5.0-b20)
      Testbase : Regression-test
      Platform[s] : all
      switch/Mode : default
      Falling test : javax/print/StreamPrinting.java

      Regression test javax/print/StreamPrinting.java fails with timeout using JDK1.5.0-b20.

      Here is the test source fragment:

      --------- javax/print/StreamPrinting.java ---------
      ...
           43 PrintRequestAttributeSet att = new HashPrintRequestAttributeSet();
           44 //if (pj.printDialog(att)) {
           45 if (pj.printDialog()) {
           46 try {
           47 System.out.println("About to print the data ...");
           48 pj.print();
           49 System.out.println("Printed");
           50 }
           51 catch (PrinterException pe) {
           52 pe.printStackTrace();
           53 }
           54 }
      ...
      ---------------------------------------------------

      The reason of the failure is that the test is not automated: it calls
      PrinterJob.printDialog method at the line 45 and then just wait for some user actions.

      If I click "Print" or "Cancel" button in Print dialog manually, the test passes.

      This test should be automated or marked as "manual".

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/javax/print/StreamPrinting.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b20/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/javax/print/StreamPrinting.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables):
      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir
      #KOORI_ONESTOP is your path to koori.sfbay/onestop (/net/koori/onestop, /java/re)
      KOORI_ONESTOP="/java/re"
      #JPSE04 is your path to /net/jdk/export/jpse04
      JPSE04="/net/jdk/export/jpse04"
      #JT_HOME="/net/linux-15/export/home/java/jct"
      JT_HOME="$KOORI_ONESTOP/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      JEMMY_JAR="$JPSE04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/x86"
      JAVA_HOME="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b20/binaries/solaris-i586"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"
      TEST_BASE_PATH="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b20/ws/j2se/test"
      TESTVMOPTS="-client"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
      TEST="javax/print/StreamPrinting.java"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1
      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-18" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"
      --- script end ---

      Test output (jtr part):
      =======================
      ----------System.out:(2/80)----------
      Stream Print Service PSStreamPrintService: Postscript output
      open PrintDialog..
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.5.0/x86/bin/java' interrupted! (timed out?)

      test result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.5.0/x86/bin/java' interrupted! (timed out?)

      Specific machine info:
      ======================
      Hostname: linux-18
      OS: Solaris 10 (x86) (CDE)
      Hostname: linux-24
      OS: RedHat Advanced Server 2.1 (Gnome)

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

        Attachments

          Activity

            People

            • Assignee:
              jgodinez Jennifer Godinez (Inactive)
              Reporter:
              irasunw Ira Ira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: