-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
rc
-
x86
-
linux
-
Verified
Name: mmR10223 Date: 04/18/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.1-b21, JDK1.4.2-b20
Testbase : RegTest-cte
Platform[s] : valid only for Linux
switch/Mode : -client
Falling test[s]:
CTE_REGTEST/Generic/4791798/jnitest.sh
This test fails with gcc v3.0 and above, but passes with gcc v2.96.
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4791798/jnitest
.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b20/regtest/linux/redhat8.0_gno
me-client_linux-2
0/workDir/cte/CTE_REGTEST/Generic/4791798/jnitest.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/linux"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-client"
TESTVMOPTS="-client"
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-20" -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/4791798/jnitest.sh"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(15/811)----------
extracted: HelloWorld.h
extracted: HelloWorld.java
extracted: HelloWorldImpl.cpp
extracted: Makefile.Template
extracted: README
extracted: TestClass.cpp
extracted: TestClass.h
extracted: mymain.cpp
extracted: run.debug
rm -f *.o *.so HelloWorld.h *.class mymain
/net/linux-15/export/home/java/jdk1.4.2/linux/bin/javac HelloWorld.java
/net/linux-15/export/home/java/jdk1.4.2/linux/bin/javah -jni HelloWorld
g++ -I/net/linux-15/export/home/java/jdk1.4.2/linux/include
-I/net/linux-15/export/home/java/jdk1.4.2/linux/include/linux -D_GNU_SOURCE
-D_REENTRANT -g -c
HelloWorldImpl.cpp
g++ -I/net/linux-15/export/home/java/jdk1.4.2/linux/include
-I/net/linux-15/export/home/java/jdk1.4.2/linux/include/linux -D_GNU_SOURCE
-D_REENTRANT -g -c
TestClass.cpp
gcc -shared -o libhello.so HelloWorldImpl.o TestClass.o
----------System.err:(1/33)----------
java full version "1.4.2-rc-b20"
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
Specific machine info:
======================
Hostname: linux-20
OS: RedHat Linux 8.0 (GNOME)
======================================================================
- relates to
-
JDK-5044176 TEST_BUG: CTE_REGTEST/Generic/4791798/jnitest.sh fails
-
- Closed
-