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

TEST_BUG: RegTest-cte CTE_REGTEST/Generic/4503980/TestCursor.java fails

XMLWordPrintable

    • rc
    • generic
    • generic
    • Verified



        Name: iaR10016 Date: 06/18/2003


        Filed By : J2SE-SQA [###@###.###
        JDK : JDK1.4.2-b27 (passes with JDK1.4.2-b25, JDK1.4.1)
        Testbase : RegTest-cte
        Platform[s] : all
        switch/Mode : all
        Falling test[s]: CTE_REGTEST/Generic/4503980/TestCursor.java

        RegTest-cte test CTE_REGTEST/Generic/4503980/TestCursor.java fails with error with JDK1.4.2-b27.
        This test was modified in b27. It passes with previous JDK builds.

        Here is the code fragment from the test source:

        --------- TestCursor.java ---------
        001> /*
        002> * @test 0 03/06/06
        003> * @bug 4503980 4504319
        004> * @summary 4503980: Focus lost/gain events get lost when gaining focus on
        005> * external CDE component
        006> * 4504319: Focus in Jtextfield get messed up when covered by a
        007> * window (dtterm)
        008> * Fixed in JDK1.3.1_03
        009> * @compile ../../../library/ShowLiveStatus.java
        010> * @run shell Test4503980.sh
        011> */
        ...
        -----------------------------------

        Problem is that "../../../library/ShowLiveStatus.java" file does not exist, actually
        ShowLiveStatus.java is located at "../../library directory". The test fails with error
        because of this reason.

        Test source location:
        =====================
        /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/CTE_REGTEST/Generic/4503980/TestCursor.java

        jtr file location:
        ==================
        /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b27/regtest/win32/winXP_PRO_-server_smp_linux-16/workDir/cte/CTE_REGTEST/Generic/4503980/TestCursor.jtr

        How to reproduce:
        =================
        Run the following script (you may need to change it's variables):

        --- script start ---
        #!/bin/sh

        RESULT_DIR=`pwd`
        WORK_DIR=$RESULT_DIR/workDir/test
        REPORT_DIR=$RESULT_DIR/reportDir
        JT_HOME="/net/linux-15/export/home/java/jct"
        JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/linux"
        TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"
        CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

        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 -DenvVars=$JAVA_HOME,TESTVMOPTS="-client" -DDISPLAY=:0 -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/CTE_REGTEST/Generic/4503980/TestCursor.java"
        --- script end ---

        Script output:
        ==============
        JavaTest HTTPd - Success, active on port 1903
        JavaTest HTTPd server available at http://129.144.234.222:1903/
        runner starting test: CTE_REGTEST/Generic/4503980/TestCursor.java
        runner finished test: CTE_REGTEST/Generic/4503980/TestCursor.java
        Error. Test Class Exception: Can't find source file: ../../../library/ShowLiveStatus.java
        Test results: error: 1
        Report written to /home/ira/tmp/reportDir/report.html
        Results written to /home/ira/tmp/workDir/test
        Error: Some tests failed or other problems occurred.

        Test output (jtr part):
        =======================
        #section:script_messages
        ----------messages:(4/207)----------
        JDK under test: (/net/linux-15/export/home/java/jdk1.4.2/x86)
        java version "1.4.2"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b27)
        Java HotSpot(TM) Client VM (build 1.4.2-b27, mixed mode)

        test result: Error. Test Class Exception: Can't find source file: ../../../library/ShowLiveStatus.java

        Specific machine info:
        ======================
        Hostname: linux-2
        OS: Windows 2000 Pro

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

              asaha Abhijit Saha
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: