JDK-4876441 : RegTest-cte CTE_REGTEST/Generic/4774960/DashFrame.java fails
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 1.4.2,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_10
  • CPU: generic,sparc
  • Submitted: 2003-06-10
  • Updated: 2005-11-14
  • Resolved: 2004-05-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 beta2Fixed
Related Reports
Relates :  
Description

Name: mmR10223			Date: 06/09/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b25 (also fails on JDK1.4.2-b24, JDK1.5.0-b08, JDK1.4.1-b21)
Testbase       : RegTest-cte
Platform[s]    : Solaris (sparc) 
switch/Mode    : default
Falling test[s]: CTE_REGTEST/Generic/4774960/DashFrame.java 

This is test valid on Solaris (sparc) platforms only.
The test fails because on the first step of the cycle the variable $M_SIZE isn't equal to $NEW_SIZE. 
Earlier the test failed by reason of the bug 4859646.

Here is a code fragmet Test4774960.sh:

.....

sleep 45

M_SIZE=`top 2>&1 | grep ${C_PID} | awk '{print $7}' | sed "s/[A-Z]//g"`

COUNT=1
INCREASE=0

while [ $COUNT -le 3 ]
do
    sleep 10
    NEW_SIZE=`top 2>&1 | grep ${C_PID} | awk '{print $7}' | sed "s/M//g"`

echo $NEW_SIZE
echo $M_SIZE

    if [ $NEW_SIZE != $M_SIZE ]
    then
        M_SIZE=$NEW_SIZE
        INCREASE=`expr $INCREASE + 1`
    fi
    COUNT=`expr $COUNT + 1`
done

kill -9 ${C_PID}

if [ $INCREASE -gt 0 ]
then
    echo "Test Failed"
    exit 1
else
    echo "Test Passed"
    exit 0
fi

Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4774960/DashFrame.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b25/regtest/sparc/sol7_sparc-client_linux-7/workDir/cte/CTE_REGTEST/Generic/4774960/DashFrame.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="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/sparc"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"

TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME

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_U
S,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-7" -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/4774960/DashFrame.java"

--- script end ---

Script output:
==============

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:shell
----------messages:(3/132)----------
command: shell Test4774960.sh 
reason: User specified action: run shell/timeout=300 Test4774960.sh 
elapsed time (seconds): 217.816
----------System.out:(1/12)----------
24
23
24
24
24
24
Test Failed
----------System.err:(2/46)----------
java full version "1.4.2-rc-b25"
28916 Killed
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1


Specific machine info:
======================
Hostname: linux-1
OS: Solaris 8 (sparc) (CDE)
Hostname: linux-7
OS: Solaris 7 (sparc) (CDE)
Hostname: linux-8
OS: Solaris 10 (sparc) (CDE)


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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta2 FIXED IN: tiger-beta2 INTEGRATED IN: tiger-beta2 VERIFIED IN: tiger-rc
08-07-2004

EVALUATION 4774960 belonged to 2D, so I am reassigning to that group. ###@###.### 2003-06-13 Passing it first on to the CTE engineer to make sure that the test is valid. ###@###.### 2003-06-16 Abhijit is the one who cameup with the *automated* testcase. ###@###.### 2003-07-07
16-06-2003