United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7152183 : TEST_BUG: java/lang/ProcessBuilder/Basic.java failing intermittently [sol]

Details
Type:
Bug
Submit Date:
2012-03-08
Status:
Closed
Updated Date:
2013-12-17
Project Name:
JDK
Resolved Date:
2012-10-11
Component:
core-libs
OS:
generic
Sub-Component:
java.lang
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
This test has failed intermittently on Solaris a few times, see attach jtreg for an example.

Note that this test should not be added to the ProblemList because the test coverage that it provides it too great.


#Test Results (version 2)
#Wed Mar 07 21:15:04 PST 2012
#checksum:6eff226e299726ce
#-----testdescription-----
$file=/Users/aurora/sandbox/testbase/test/java/lang/ProcessBuilder/Basic.java
$root=/Users/aurora/sandbox/testbase/test
author=Martin Buchholz
keywords=bug4199068 bug4738465 bug4937983 bug4930681 bug4926230 bug4931433 bug4932663 bug4986689 bug5026830 bug5023243 bug5070673 bug4052517 bug4811767 bug6192449 bug6397034 bug6413313 bug6464154 bug6523983 bug6206031 bug4960438 bug6631352 bug6631966 bug6850957 bug6850958 bug4947220 bug7018606 bug7034570 othervm
maxTimeout=300
run=USER_SPECIFIED main/othervm/timeout\=300 Basic\n
source=Basic.java
title=Basic tests for Process and Environment Variable code

#-----environment-----

#-----testresult-----
description=file\:/Users/aurora/sandbox/testbase/test/java/lang/ProcessBuilder/Basic.java
elapsed=32605 0\:00\:32.605
end=Wed Mar 07 21\:15\:04 PST 2012
environment=regtest
execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.AssertionError\: Some tests failed
hostname=sc11136068
javatestOS=SunOS 5.10 (sparc)
javatestVersion=4.4
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile main
start=Wed Mar 07 21\:14\:31 PST 2012
test=java/lang/ProcessBuilder/Basic.java
user.name=aurora
work=/Users/aurora/sandbox/gresults/testoutput/jdk_lang/JTwork/java/lang/ProcessBuilder

#section:script_messages
----------messages:(4/220)----------
JDK under test: (/Users/aurora/sandbox/jdk)
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h185-20120307-b29-b00)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b16, mixed mode)

#section:build
----------messages:(3/90)----------
command: build Basic
reason: Named class compiled on demand
elapsed time (seconds): 0.994
result: Passed. Build successful

#section:compile
----------messages:(3/169)----------
command: compile /Users/aurora/sandbox/testbase/test/java/lang/ProcessBuilder/Basic.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.992
result: Passed. Compilation successful

#section:main
----------messages:(3/118)----------
command: main Basic
reason: User specified action: run main/othervm/timeout=300 Basic 
elapsed time (seconds): 31.608
----------System.out:(18/645)*----------
This appears to be a Unix system.
Testing ASCII environment values
Testing directory .
Testing directory ..
Testing directory /
Testing directory /bin
cmdp
cmdp 0: /Users/aurora/sandbox/jdk/jre/bin/java
cmdp 1: -classpath
cmdp 2: /Users/aurora/sandbox/jtreg/lib/javatest.jar:/Users/aurora/sandbox/jtreg/lib/jtreg.jar:/Users/aurora/sandbox/gresults/testoutput/jdk_lang/JTwork/classes/java/lang/ProcessBuilder:/Users/aurora/sandbox/testbase/test/java/lang/ProcessBuilder:/Users/aurora/sandbox/jdk/lib/tools.jar
cmdp 3: Basic$JavaChild
cmdp 4: System.getenv()
envp
envp 0: LC_ALL=C\u0000\u0000
envp 1: FO\u0000=B\u0000R

Passed = 9006, failed = 1

----------System.err:(17/884)----------
java.io.IOException: Stream Closed
	at java.io.FileInputStream.read(Native Method)
	at java.lang.UNIXProcess$DeferredCloseInputStream.read(UNIXProcess.java:253)
	at Basic$64.run(Basic.java:1908)
java.lang.AssertionError: Some tests failed
	at Basic.main(Basic.java:2248)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.AssertionError: Some tests failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.AssertionError: Some tests failed
result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed


test result: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed

                                    

Comments
EVALUATION

Most likely this is a case where the test needs to handle a Stream Closed error.
                                     
2012-03-08
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/7c2f5e52863c
User:  robm
Date:  2012-10-11 17:22:49 +0000

                                     
2012-10-11
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/7c2f5e52863c
User:  lana
Date:  2012-10-31 02:51:07 +0000

                                     
2012-10-31



Hardware and Software, Engineered to Work Together