JDK-4933581 : TEST_BUG: Regression-test sun/text/resources/Locale/LocaleDataTest.java fails
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9,windows_xp
  • CPU: x86,sparc
  • Submitted: 2003-10-07
  • Updated: 2003-10-17
  • Resolved: 2003-10-14
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 b24Fixed
Related Reports
Relates :  
Description

Name: mmR10223			Date: 10/07/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b22
Testbase       : Regression-test
Platform[s]    : Windows XP Home, Solaris 9 (sparc) (CDE), Solaris 9 (x86) (CDE)
switch/Mode    : default
Falling test[s]: sun/text/resources/Locale/LocaleDataTest.java 

Regression-test sun/text/resources/Locale/LocaleDataTest.java test fails with JDK1.5.0-b22
on all platforms. It passes using JDK1.5.0-b21, JDK1.4.2-b28.

Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/text/resources/Locale/LocaleDataTest.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b22/regtest/sparc/sol9_sparc_gnome_novo48/workDir/test/sun/text/resources/Locale/LocaleDataTest.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/sparc"
JAVA_HOME="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b22/binaries/solaris-sparc"

#TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"
TEST_BASE_PATH="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b22/ws/j2se/test"		


TESTVMOPTS="-client"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

TEST="sun/text/resources/Locale/LocaleDataTest.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="novo48" -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 ---

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

Test output (jtr part):
=======================
----------System.out:(7/316)*----------
Mismatch in LocaleElements/ko/DateTimePatterns/0:
  file = "a h'\uc2dc' m'\ubd84' s'\ucd08' z"
   jvm = "a h'\uc2dc' mm'\ubd84' ss'\ucd08' z"
Mismatch in LocaleElements/ko/DateTimePatterns/1:
  file = "a h'\uc2dc' m'\ubd84' s'\ucd08'"
   jvm = "a h'\uc2dc' mm'\ubd84' ss'\ucd08'"
Test failed.  2 errors.
----------System.err:(13/709)----------
java.lang.Exception: Test failed.  2 errors.
	at LocaleDataTest.main(LocaleDataTest.java:158)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
	at java.lang.Thread.run(Thread.java:549)

JavaTest Message: Test threw exception: java.lang.Exception: Test failed.  2 errors.
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: Test failed.  2 errors.
result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Test failed.  2 errors.


test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: Test failed.  2 errors.


Specific machine info:
======================
Hostname: linux-21
OS: Windows XP Home
Hostname: linux-6
OS: Solaris 9 (x86) (CDE)
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)



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

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger-b24 tiger-beta VERIFIED IN: tiger-beta
14-06-2004

EVALUATION Looks like a dup of 4930708. Reassigning to L10N. ###@###.### 2003-10-07 This was caused by fix of 4900884 Korean short time pattern is not correct The test case has been updated and code reviewed by ###@###.### ###@###.### 2003-10-07
11-06-2004