JDK-4253482 : Regression test CloseAvailable.java Failing
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.3.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: generic
  • Submitted: 1999-07-12
  • Updated: 1999-07-20
  • Resolved: 1999-07-20
Related Reports
Duplicate :  
Description

Name: ns86221			Date: 07/12/99

Regression test java/net/Socket/CloseAvailable.java 
Failing
#Test Results
#Sun Jul 11 17:58:48 PDT 1999
testsuite=X:\\testexec\\REGRESSION\\kestrel\\tests\\jdk1.3\\test
source=CloseAvailable.java
title=Test Socket.available()
status=Failed. Execution failed: `main' threw exception: 
java.net.UnknownHostException: manny.eng.sun.com
work=F:\\REGRESSION\\results\\MANNY-Windows_95-harness115k-testwith13k-07-11-16.
20\\java\\net\\Socket
execStatus=Failed. Execution failed: `main' threw exception: 
java.net.UnknownHostException: manny.eng.sun.com
description=file:X:/testexec/REGRESSION/kestrel/tests/jdk1.3/test/java/net/Socke
t/CloseAvailable.java
javatestVersion=JT_2.0_zn
sections=compile compile main main
file=X:\\testexec\\REGRESSION\\kestrel\\tests\\jdk1.3\\test\\java\\net\\Socket\CloseAvailable.java
end=Sun Jul 11 17:58:48 PDT 1999
bug=4091859
run=0 main CloseAvailable\r\n
start=Sun Jul 11 17:56:15 PDT 1999
keywords=4091859
environment=regtest

test: java\net\Socket\CloseAvailable.java
script: javasoft.sqe.javatest.regtest.RegressionScript 
JDK under test: java full version "JDK-1.3-K" (E:/jdk13k)
command: build CloseAvailable
reason: Named class compiled on demand
command: compile 
X:\testexec\REGRESSION\kestrel\tests\jdk1.3\test\java\net\Socket\CloseAvailable.
java
reason: .class file out of date or does not exist
----------ref:compile(0/0)----------
----------log:compile(0/0)----------
command: compile result: Passed. Compilation successful
command: build result: Passed. Compilation successful
command: main CloseAvailable
reason: Assumed action based on file name: run main CloseAvailable 
----------ref:main(0/0)----------
----------log:main(14/738)----------
java.net.UnknownHostException: manny.eng.sun.com
	at java.net.InetAddress.getAllByName0(InetAddress.java:579)
	at java.net.InetAddress.getAllByName0(InetAddress.java:548)
	at java.net.InetAddress.getAllByName(InetAddress.java:541)
	at java.net.InetAddress.getLocalHost(InetAddress.java:731)
	at CloseAvailable.main(CloseAvailable.java:19)
	at java.lang.reflect.Method.invoke(Native Method)
	at 
javasoft.sqe.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:479)

JavaTest Message: Test threw exception: 
java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.net.UnknownHostException: 
manny.eng.sun.com
command: main result: Failed. Execution failed: `main' threw exception: 
java.net.UnknownHostException: manny.eng.sun.com
test result: Failed. Execution failed: `main' threw exception: 
java.net.UnknownHostException: manny.eng.sun.com
======================================================================

Comments
EVALUATION When the test is run outside of JavaTest, it is successful; however, it always fails when run via jtreg for Windows95 only (note that the test successfully using the harness in Windows98 and WindowsNT). This problem appears to have been present going back to at least JDK1.1.6 and JavaTest2.0. In Windows95, the environment variable "windir" must be set for the call to java.net.InetAddress.getLocalHost() to be successful. I have verified that the regression extensions to JavaTest do in fact pass this environment variable when Runtime.exec() is called; however, the conventions for quoting backslash are inconsistent between the various platforms. Thus, it can not be properly defined for all three. Bug 4255435 contains further details. Though it was not relevant in this case, I strongly suggest that JavaTest2.1 be used for further testing. Closing this bug as a duplicate of the new quote-backslash bug against Runtime.exec(). iris.garcia@eng 1999-07-19
19-07-1999