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

TEST_BUG: regtest java/awt/Component/GetScreenLocTest fails

XMLWordPrintable

    • linux, os_x, windows

      Name: icR10030 Date: 09/26/2002


      Regtest test java/awt/Component/GetScreenLocTest/GetScreenLocTest.html fails in Redhat Linux:
        Redhat 7.3 + GNOME + Sawfish( Default frame style: Gleam ) - 100% fails
        Redhat 7.2 + GNOME + Sawfish( Default frame style: Crux ) - ~80% fails

      Please note, that the test contains following summary tag:
        @summary Tests that getLocationOnScreen returns valid value(WindowMaker only).
      The test passes in WindowMaker window manager.

      It seems, that the test must check current window manager and be modified properly.

      Filed By : J2SE-SQA [###@###.###
      JDK : jdk1.4.2-b02
      Testbase : RegTest-test
      Platform[s] : RedHat Linux 7.2, RedHat Linux 7.3
      Failing Test : java/awt/Component/GetScreenLocTest/GetScreenLocTest.html

      How to reproduce:
      =================
      0. Start Redhat + GNOME + Sawfish
      1. Set default frame style: Gleam for Redhat 7.3/Crux for 7.2
      2. Run following script:
      --------Script START---------------------
      #!/usr/bin/ksh

      PS=':'
      JDK=/net/linux-15/export/home/java/jdk1.4.2/linux
      TEST_BASE=/net/linux-15/export/home/java/regtest
      JT=/net/linux-15/export/home/java/jct/lib/javatest.jar
      JTREG=/net/linux-15/export/home/java/jct/lib/jtreg.jar

      TEST_BASE_ROOT=$TEST_BASE/test
      TEST_PACKAGE=java/awt/Component/GetScreenLocTest

      TEST_SHORT_NAME=GetScreenLocTest
      TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME

      TEST_SRC=$TEST_BASE_ROOT/${TEST_NAME}.java

      CLASSPATH=.${PS}${JDK}${PS}${JDK}/lib/tools.jar${PS}
      CLASSPATH=$CLASSPATH${TEST_BASE}${PS}${TEST_BASE_ROOT}/${TEST_PACKAGE}${PS}${JT}${PS}${JTREG}
      export CLASSPATH

      dir=`pwd`
      $JDK/bin/javac -g -classpath $CLASSPATH -d . $TEST_SRC

      printf "$TEST_SHORT_NAME\000" > x.jta
      printf "$TEST_BASE_ROOT\000" >> x.jta
      printf ".\000" >> x.jta
      printf ".\000" >> x.jta
      printf "unset\000" >> x.jta
      printf "<h1>GetScreenLocTest <br>Bug ID: 4356202</h1>" >> x.jta
      printf "<p> This is an AUTOMATIC test, simply wait for completion </p>" >> x.jta
      printf "<APPLET CODE="GetScreenLocTest.class" WIDTH=200 HEIGHT=200></APPLET>\000" >> x.jta
      printf "\000" >> x.jta
      printf "code\034GetScreenLocTest.class\034height\034%d\034width\034%d\034\000" 200 200 >> x.jta

      loop=0
      while [ $loop -lt 20 ]; do
      $JDK/bin/java com.sun.javatest.regtest.AppletWrapper x.jta
      #$TEST_SHORT_NAME.jta
      loop=`expr $loop + 1`
      done
      --------Script END----------------------

      Test output:
      ============
      java.lang.RuntimeException: wrong state
              at GetScreenLocTest.start(GetScreenLocTest.java:141)
              at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:133)
              at java.lang.Thread.run(Thread.java:536)
      STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: wrong state
      result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: wrong state

      Specific Machine Info:
      ======================
      Hostname: linux-13
      Os: Redhat 7.3
      Hostname: linux-12
      Os: Redhat 7.2

      ======================================================================
      ###@###.### 10/12/04 15:26 GMT

            Unassigned Unassigned
            ichesunw Iche Iche (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: