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

TEST_BUG: Regtest java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypr

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      x86
    • OS:
      solaris_9
    • Verification:
      Verified

      Description



      Name: aaR10208 Date: 04/30/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b21
      Testbase : RegTest-test
      Platform[s] : Solaris 9 (x86) (CDE), SMP 4 CPU
      switch/Mode : -server
      Falling test[s]: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.html

      Here is a part of the test source code:
      === ClickDuringKeypress.java ===
           83 public void start ()
           84 {
           85 //Get things going. Request focus, set size, et cetera
           86 setSize (200,200);
           87 show();
      [...]
           96 robot.mouseMove(200, 200);
           97 frame.show();
           98
      ! 99 while(!ready) {}
          100 doTest();
      === end of ClickDuringKeypress.java ===

      The test falls into the loop waiting until its frame gets activated.
      The test does not do any sleeps in that loop, and such loops takes a lot of CPU resources,
      so there is a big chance that other threads (i.e. EventDispatcher) do not get a chance to work.
      This causes the test to loop there for a long time and to be killed by the harness because of timeout.

      Adding a Thread.sleep() call in the loop body makes the problem to disappear.
      Note that failure is intermittent and not reproducible always.


      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.html

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b21/regtest/x86/sol9_x86-server_smp_linux-6/workDir/test/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.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
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JAVA_HOME="/java/re/jdk/1.4.2/promoted/latest/binaries/solaris-x86"
      TEST_BASE_PATH="/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test"
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/x86"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-server"
      TESTVMOPTS="-server"

      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"

      export JAVA_HOME
      export JT_HOME
      export TESTWITH
      export CLASSPATH

      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 -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-6" -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/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.html"

      --- script end ---

      Script output:
      ==============
      JavaTest HTTPd - Success, active on port 1903
      JavaTest HTTPd server available at http://129.144.234.216:1903/
      runner starting test: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.html
      runner finished test: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.html
      Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.4.2/x86/bin/java' interrupted! (timed out?)
      Test results: failed: 1
      Report written to /home/sundr/bugs/mclick/reportDir/report.html
      Results written to /home/sundr/bugs/mclick/workDir/test
      Error: Some tests failed or other problems occurred.

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Failed. Execution failed: Program `/net/linux-15/export/home/java/jdk1.4.2/x86/bin/java' interrupted! (timed out?)


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


      Specific machine info:
      ======================
      Hostname: linux-6
      OS: Solaris 9 (x86) (CDE), SMP 4 CPU


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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ssisunw Ssi Ssi (Inactive)
                Reporter:
                sundrsunw Sundr Sundr (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: